forked from mbk-lab/rui_orig
Fixed Popup
This commit is contained in:
parent
b860295325
commit
21ee77eb26
2
popup.go
2
popup.go
|
@ -362,6 +362,7 @@ func (manager *popupManager) showPopup(popup Popup) {
|
||||||
session.runScript(`if (document.activeElement != document.body) document.activeElement.blur();`)
|
session.runScript(`if (document.activeElement != document.body) document.activeElement.blur();`)
|
||||||
manager.updatePopupLayerInnerHTML(session)
|
manager.updatePopupLayerInnerHTML(session)
|
||||||
updateCSSProperty("ruiPopupLayer", "visibility", "visible", session)
|
updateCSSProperty("ruiPopupLayer", "visibility", "visible", session)
|
||||||
|
updateCSSProperty("ruiRoot", "pointer-events", "none", session)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (manager *popupManager) dismissPopup(popup Popup) {
|
func (manager *popupManager) dismissPopup(popup Popup) {
|
||||||
|
@ -379,6 +380,7 @@ func (manager *popupManager) dismissPopup(popup Popup) {
|
||||||
if manager.popups[count-1] == popup {
|
if manager.popups[count-1] == popup {
|
||||||
if count == 1 {
|
if count == 1 {
|
||||||
manager.popups = []Popup{}
|
manager.popups = []Popup{}
|
||||||
|
updateCSSProperty("ruiRoot", "pointer-events", "auto", session)
|
||||||
updateCSSProperty("ruiPopupLayer", "visibility", "hidden", session)
|
updateCSSProperty("ruiPopupLayer", "visibility", "hidden", session)
|
||||||
session.runScript(`updateInnerHTML('ruiPopupLayer', '');`)
|
session.runScript(`updateInnerHTML('ruiPopupLayer', '');`)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue