1
0
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:
Simon Huber 2019-08-02 09:49:06 +02:00 committed by Jeremy Ruston
parent 8db893b9c9
commit 64fe260f4d

View File

@ -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;