diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index 1c79b032c3a..bde5d081a90 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -1057,10 +1057,11 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV } isInputClick(event: MouseEvent): boolean { + const target: HTMLElement = event.target as HTMLElement; return ( - DomHandler.hasClass(event.target, 'p-dropdown-clear-icon') || - (event.target as HTMLInputElement).isSameNode(this.accessibleViewChild?.nativeElement) || - ((this.editableInputViewChild && (event.target as HTMLInputElement).isSameNode(this.editableInputViewChild.nativeElement)) as boolean) + target.closest('timesicon') !== null || + (target as HTMLInputElement).isSameNode(this.accessibleViewChild?.nativeElement) || + ((this.editableInputViewChild && (target as HTMLInputElement).isSameNode(this.editableInputViewChild.nativeElement)) as boolean) ); }