Skip to content

Commit d696c35

Browse files
committed
fix: prevent loop caused by actions firing prefix with no query elements
1 parent 17d5a14 commit d696c35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@ const CoCreateEvents = {
395395
!targetPosition &&
396396
["click", "focus", "blur"].includes(prefix)
397397
) {
398-
targetElements[i][prefix]();
398+
if (element.hasAttribute(prefix))
399+
targetElements[i][prefix]();
399400
} else {
400401
this.setValue(
401402
prefix,

0 commit comments

Comments
 (0)