Skip to content

Commit

Permalink
Patch MultiSelect
Browse files Browse the repository at this point in the history
  • Loading branch information
MaXal committed Sep 26, 2024
1 parent d90aba2 commit b747cd0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
"ignoreMissing": [
"primeicons"
]
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
},
"engines": {
Expand Down
14 changes: 14 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/multiselect/index.mjs b/multiselect/index.mjs
index bbe16fb37e386775a93158133e04db6619d11ca7..592ee6c5347269ef6a058f74740d2a580ec75208 100644
--- a/multiselect/index.mjs
+++ b/multiselect/index.mjs
@@ -747,7 +747,8 @@ var script = {
}
},
isOutsideClicked: function isOutsideClicked(event) {
- return !(this.$el.isSameNode(event.target) || this.$el.contains(event.target) || this.overlay && this.overlay.contains(event.target));
+ const path = event.composedPath();
+ return !(path.includes(this.$el) || (this.overlay && path.includes(this.overlay)));
},
getLabelByValue: function getLabelByValue(value) {
var _this9 = this;
11 changes: 8 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b747cd0

Please sign in to comment.