New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(core): solve multi input add new token #7714
fix(core): solve multi input add new token #7714
Conversation
dont add token that user type in input and then enter where the option is exist in optionslist and just select it. SAP#7611
✔️ Deploy Preview for fundamental-ngx ready! 🔨 Explore the source changes: 4549ba6 🔍 Inspect the deploy log: https://app.netlify.com/sites/fundamental-ngx/deploys/6205208a56c85400086ac6a0 😎 Browse the preview: https://deploy-preview-7714--fundamental-ngx.netlify.app |
Hi @Mohammadreza-Mohammadi thank you for your contribution. Please sign the CLA so we can merge your PR. Thank you! |
I did it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
Only one note, when i press enter without filling the input the first token from the available options added.
Screen.Recording.2022-02-10.at.14.06.44.mov
onsubmit method handle empty searchTerm and just return
Thanks @platon-rov , |
user type in input and then press enter to select option or add new token.
Related Issue(s)
this commit resolve one of issue in this #7611
if token is new and user allow to add new token and token is not exist in current list then user by pressing enter can add the new token to tokenlist.
if the token exist in list so user by pressing enter can add it to token list.
closes
Description
_onsubmit method check this behavior for adding token.