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
|
// Allow plugins to update our value
|
||||||
@HostListener('change', [ '$event.target' ])
|
@HostListener('change', [ '$event.target' ])
|
||||||
handleChange (event: any) {
|
handleChange (target: HTMLInputElement) {
|
||||||
this.writeValue(event.value)
|
// Prevent the primeng search input to out value
|
||||||
|
if (target.role === 'searchbox') return
|
||||||
|
|
||||||
|
this.writeValue(target.value)
|
||||||
this.onModelChange()
|
this.onModelChange()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue