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

This commit is contained in:
Tuğçe Küçükoğlu 2023-08-11 10:20:38 +03:00
parent 0e125d92b4
commit a7885f3abf

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