fixing this dialog never gets old
This commit is contained in:
parent
ddc758c17c
commit
cb795870ee
2 changed files with 14 additions and 9 deletions
|
|
@ -198,13 +198,16 @@ var gs_moto_ui = exports;
|
|||
btn.parentNode.onclick = btn.onclick;
|
||||
ev.stopPropagation();
|
||||
// drop clicks on TextArea
|
||||
if (ev.target === txt) return;
|
||||
var showing = pop === lastPop;
|
||||
hidePop();
|
||||
if (!showing) {
|
||||
pop.style.display = "flex";
|
||||
lastPop = pop;
|
||||
txt.focus();
|
||||
if (ev.target === txt) {
|
||||
ev.target.focus();
|
||||
} else {
|
||||
var showing = pop === lastPop;
|
||||
hidePop();
|
||||
if (!showing) {
|
||||
pop.style.display = "flex";
|
||||
lastPop = pop;
|
||||
txt.focus();
|
||||
}
|
||||
}
|
||||
};
|
||||
addModeControls(btn, opt);
|
||||
|
|
|
|||
Loading…
Reference in a new issue