forked from mbk-lab/rui_orig
2
0
Fork 0

Bug fixing

This commit is contained in:
Alexei Anoshenko 2022-04-15 15:41:44 +03:00
parent 456744de82
commit 71993fd8b7
5 changed files with 16 additions and 0 deletions

View File

@ -1768,4 +1768,8 @@ function tableRowClickEvent(element, event) {
} }
sendMessage("rowClick{session=" + sessionID + ",id=" + tableID + ",row=" + row + "}"); sendMessage("rowClick{session=" + sessionID + ",id=" + tableID + ",row=" + row + "}");
}
function stopEventPropagation(element, event) {
event.stopPropagation()
} }

View File

@ -188,6 +188,9 @@ func (picker *colorPickerData) htmlProperties(self View, buffer *strings.Builder
buffer.WriteByte('"') buffer.WriteByte('"')
buffer.WriteString(` oninput="editViewInputEvent(this)"`) 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) { func (picker *colorPickerData) htmlDisabledProperties(self View, buffer *strings.Builder) {

View File

@ -302,6 +302,9 @@ func (picker *datePickerData) htmlProperties(self View, buffer *strings.Builder)
buffer.WriteByte('"') buffer.WriteByte('"')
buffer.WriteString(` oninput="editViewInputEvent(this)"`) 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) { func (picker *datePickerData) htmlDisabledProperties(self View, buffer *strings.Builder) {

View File

@ -292,6 +292,9 @@ func (picker *filePickerData) htmlProperties(self View, buffer *strings.Builder)
} }
buffer.WriteString(` oninput="fileSelectedEvent(this)"`) 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) { func (picker *filePickerData) htmlDisabledProperties(self View, buffer *strings.Builder) {

View File

@ -302,6 +302,9 @@ func (picker *timePickerData) htmlProperties(self View, buffer *strings.Builder)
buffer.WriteByte('"') buffer.WriteByte('"')
buffer.WriteString(` oninput="editViewInputEvent(this)"`) 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) { func (picker *timePickerData) htmlDisabledProperties(self View, buffer *strings.Builder) {