Skip to content

Commit

Permalink
Fix select search input
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Feb 11, 2025
1 parent ac0bf90 commit 3062576
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ export class SelectOptionsComponent implements AfterContentInit, ControlValueAcc

// Allow plugins to update our value
@HostListener('change', [ '$event.target' ])
handleChange (event: any) {
this.writeValue(event.value)
handleChange (target: HTMLInputElement) {
// Prevent the primeng search input to out value
if (target.role === 'searchbox') return

this.writeValue(target.value)
this.onModelChange()
}

Expand Down

0 comments on commit 3062576

Please sign in to comment.