autocomplete onModelChange should be be triggered onInput if forceSelection is true #4668
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
I'm submitting a ... (check one with "x")
Current behavior
onModelChange is being emitted after each keystroke (input).. when forceselection is enabled this should not be the case
Expected behavior
in a reactive form we listen to form validations, when an autocomplete value is required, then we want only that control to be valid once the value is selected.
So the onmodelchange should be removed from the oninput if the forceselection is true
https://github.com/primefaces/primeng/blob/master/src/app/components/autocomplete/autocomplete.ts#L303
The text was updated successfully, but these errors were encountered: