Skip to content

Commit

Permalink
Fixed #4259 - Dropdown: Click on icon line is ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Aug 11, 2023
1 parent 0e125d9 commit a7885f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export default {
return;
}
if (event.target.tagName === 'INPUT' || event.target.getAttribute('data-pc-section') === 'clearicon' || event.target.tagName === 'path') {
if (event.target.tagName === 'INPUT' || event.target.getAttribute('data-pc-section') === 'clearicon' || event.target.closest('[data-pc-section="clearicon"]')) {
return;
} else if (!this.overlay || !this.overlay.contains(event.target)) {
this.overlayVisible ? this.hide(true) : this.show(true);
Expand Down

0 comments on commit a7885f3

Please sign in to comment.