We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e344311 commit 9144b6dCopy full SHA for 9144b6d
src/idiomorph.js
@@ -548,7 +548,8 @@ var Idiomorph = (function () {
548
const target =
549
/** @type {Element} - will always be found */
550
(
551
- ctx.target.querySelector(`[id="${id}"]`) ||
+ (ctx.target.id === id && ctx.target) ||
552
+ ctx.target.querySelector(`[id="${id}"]`) ||
553
ctx.pantry.querySelector(`[id="${id}"]`)
554
);
555
removeElementFromAncestorsIdMaps(target, ctx);
0 commit comments