Fix select search input
This commit is contained in:
parent
ac0bf90758
commit
306257686c
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue