mirror of https://github.com/anoshenko/rui.git
Bug fixing
This commit is contained in:
parent
456744de82
commit
71993fd8b7
|
@ -1769,3 +1769,7 @@ 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