forked from mbk-lab/rui_orig
Bug fixing
This commit is contained in:
parent
456744de82
commit
71993fd8b7
|
@ -1768,4 +1768,8 @@ function tableRowClickEvent(element, event) {
|
|||
}
|
||||
|
||||
sendMessage("rowClick{session=" + sessionID + ",id=" + tableID + ",row=" + row + "}");
|
||||
}
|
||||
|
||||
function stopEventPropagation(element, event) {
|
||||
event.stopPropagation()
|
||||
}
|
|
@ -188,6 +188,9 @@ func (picker *colorPickerData) htmlProperties(self View, buffer *strings.Builder
|
|||
buffer.WriteByte('"')
|
||||
|
||||
buffer.WriteString(` oninput="editViewInputEvent(this)"`)
|
||||
if picker.getRaw(ClickEvent) == nil {
|
||||
buffer.WriteString(` onclick="stopEventPropagation(this, event)"`)
|
||||
}
|
||||
}
|
||||
|
||||
func (picker *colorPickerData) htmlDisabledProperties(self View, buffer *strings.Builder) {
|
||||
|
|
|
@ -302,6 +302,9 @@ func (picker *datePickerData) htmlProperties(self View, buffer *strings.Builder)
|
|||
buffer.WriteByte('"')
|
||||
|
||||
buffer.WriteString(` oninput="editViewInputEvent(this)"`)
|
||||
if picker.getRaw(ClickEvent) == nil {
|
||||
buffer.WriteString(` onclick="stopEventPropagation(this, event)"`)
|
||||
}
|
||||
}
|
||||
|
||||
func (picker *datePickerData) htmlDisabledProperties(self View, buffer *strings.Builder) {
|
||||
|
|
|
@ -292,6 +292,9 @@ func (picker *filePickerData) htmlProperties(self View, buffer *strings.Builder)
|
|||
}
|
||||
|
||||
buffer.WriteString(` oninput="fileSelectedEvent(this)"`)
|
||||
if picker.getRaw(ClickEvent) == nil {
|
||||
buffer.WriteString(` onclick="stopEventPropagation(this, event)"`)
|
||||
}
|
||||
}
|
||||
|
||||
func (picker *filePickerData) htmlDisabledProperties(self View, buffer *strings.Builder) {
|
||||
|
|
|
@ -302,6 +302,9 @@ func (picker *timePickerData) htmlProperties(self View, buffer *strings.Builder)
|
|||
buffer.WriteByte('"')
|
||||
|
||||
buffer.WriteString(` oninput="editViewInputEvent(this)"`)
|
||||
if picker.getRaw(ClickEvent) == nil {
|
||||
buffer.WriteString(` onclick="stopEventPropagation(this, event)"`)
|
||||
}
|
||||
}
|
||||
|
||||
func (picker *timePickerData) htmlDisabledProperties(self View, buffer *strings.Builder) {
|
||||
|
|
Loading…
Reference in New Issue