Fixed #4259 - Dropdown: Click on icon line is ignored

pull/4262/head
Tuğçe Küçükoğlu 2023-08-11 10:20:38 +03:00
parent 0e125d92b4
commit a7885f3abf
1 changed files with 1 additions and 1 deletions

View File

@ -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);