Skip to content

Commit 0efdacc

Browse files
committed
breaking: Remove cant-touch-this class for disabling pattern execution. Use disable-patterns instead.
1 parent 7d2728e commit 0efdacc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/core/registry.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,8 @@ const registry = {
187187
return (
188188
!el.matches(".disable-patterns") &&
189189
!el?.parentNode?.closest?.(".disable-patterns") &&
190-
!el?.parentNode?.closest?.("pre") &&
191-
!el?.parentNode?.closest?.("template") && // NOTE: not strictly necessary. Template is a DocumentFragment and not reachable except for IE.
192-
!el.matches(".cant-touch-this") && // BBB. TODO: Remove with next major version.
193-
!el?.parentNode?.closest?.(".cant-touch-this") // BBB. TODO: Remove with next major version.
190+
!el?.parentNode?.closest?.("pre")
191+
//!el?.parentNode?.closest?.("template") && // NOTE: not strictly necessary. Template is a DocumentFragment and not reachable except for IE.
194192
);
195193
});
196194

0 commit comments

Comments
 (0)