mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-28 02:50:27 +00:00
Fix: correct handling of tc-popup-keep when cancelling ... (#4144)
... popups through focussing inputs
This commit is contained in:
parent
8db893b9c9
commit
64fe260f4d
@ -158,7 +158,7 @@ Popup.prototype.detectInputWithinPopup = function(node) {
|
||||
for(var i=0; i<this.popups.length; i++) {
|
||||
var popup = (this.popups[i] && this.popups[i].domNode) ? this.popups[i].domNode : null;
|
||||
while(node && popup) {
|
||||
if(node === popup || (node.classList && node.classList.contains("tc-popup-keep"))) {
|
||||
if(node === popup || (node.classList && (node.classList.contains("tc-popup-keep") || node.classList.contains("tc-popup-handle")))) {
|
||||
withinPopup = true;
|
||||
}
|
||||
node = node.parentNode;
|
||||
|
Loading…
Reference in New Issue
Block a user