forked from mbk-lab/rui_orig
Fixed the focus bug show of popup showing
This commit is contained in:
parent
8a2fd03fac
commit
8439b9fd06
2
popup.go
2
popup.go
|
@ -316,6 +316,8 @@ func (manager *popupManager) showPopup(popup Popup) {
|
|||
} else {
|
||||
manager.popups = append(manager.popups, popup)
|
||||
}
|
||||
|
||||
session.runScript(`if (document.activeElement != document.body) document.activeElement.blur();`)
|
||||
manager.updatePopupLayerInnerHTML(session)
|
||||
updateCSSProperty("ruiPopupLayer", "visibility", "visible", session)
|
||||
}
|
||||
|
|
3
view.go
3
view.go
|
@ -56,11 +56,10 @@ type View interface {
|
|||
// Return "true" if the value has been set, in the opposite case "false" are returned and
|
||||
// a description of the error is written to the log
|
||||
SetAnimated(tag string, value interface{}, animation Animation) bool
|
||||
|
||||
// SetChangeListener set the function to track the change of the View property
|
||||
SetChangeListener(tag string, listener func(View, string))
|
||||
|
||||
handleCommand(self View, command string, data DataObject) bool
|
||||
//updateEventHandlers()
|
||||
htmlClass(disabled bool) string
|
||||
htmlTag() string
|
||||
closeHTMLTag() bool
|
||||
|
|
Loading…
Reference in New Issue