AutoComplete onSelect bug with forceSelection #6943
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
Please demonstrate your case at stackblitz by using the issue template below. Issues without a test case have much less possibility to be reviewd in detail and assisted.
https://stackblitz.com/edit/github-6uaqnt
Current behavior
onSelect
is called twice when the user types a valid value and the autocomplete is onforceSelection
mode.Expected behavior
onSelect
should be called a single time.Minimal reproduction of the problem with instructions
https://stackblitz.com/edit/github-6uaqnt
onSelect
will be called twice as well.What is the motivation / use case for changing the behavior?
This behavior invalidates the main use of the
onSelect
event: to know when the user has truly selected a suggestion. If the user searches for a name (e.g. "John"), intending to select a "John Silver", but there is an option with just "John", theonSelect
will be wrongly called for "John" as well.Please tell us about your environment:
Language: [all | TypeScript X.X | ES6/7 | ES5]
Node (for AoT issues):
node --version
=The text was updated successfully, but these errors were encountered: