Skip to content

Commit

Permalink
Telphone's dropdown does not open when changing arrow-icon slot (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongle-hdwebsoft authored Sep 3, 2023
1 parent 5b4020e commit afb2600
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/directives/click-outside.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export default {
console.warn(warn);
}
el.clickOutsideEvent = function (event) {
if (!(el === event.target || el.contains(event.target))) {
const path = event.composedPath ? event.composedPath() : event.path;
if (!(el === event.target || el.contains(event.target) || path.includes(el))) {
binding.value(event, el);
}
};
Expand Down

0 comments on commit afb2600

Please sign in to comment.