Skip to content
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

Merged
merged 2 commits into from Feb 11, 2022

Conversation

Mohammadreza-Mohammadi
Copy link
Contributor

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.

dont add token that user type in input and then enter where the option is exist in optionslist and just select it.

SAP#7611
@cla-assistant
Copy link

cla-assistant bot commented Feb 9, 2022

CLA assistant check
All committers have signed the CLA.

@netlify
Copy link

netlify bot commented Feb 9, 2022

✔️ 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

@InnaAtanasova
Copy link
Contributor

Hi @Mohammadreza-Mohammadi thank you for your contribution. Please sign the CLA so we can merge your PR. Thank you!

@Mohammadreza-Mohammadi
Copy link
Contributor Author

I did it.

@droshev droshev requested review from a team February 10, 2022 10:02
@droshev droshev added the bug Something isn't working label Feb 10, 2022
Copy link
Contributor

@platon-rov platon-rov left a 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
@Mohammadreza-Mohammadi
Copy link
Contributor Author

Thanks @platon-rov ,
The empty string was checked in onsubmit method.

@Mohammadreza-Mohammadi Mohammadreza-Mohammadi requested review from platon-rov and removed request for a team February 10, 2022 14:54
@droshev droshev self-requested a review February 11, 2022 12:16
@droshev droshev added this to In progress in Development via automation Feb 11, 2022
@droshev droshev added this to the Sprint 81 - Santiago milestone Feb 11, 2022
@droshev droshev merged commit 66b49f0 into SAP:main Feb 11, 2022
Development automation moved this from In progress to Done Feb 11, 2022
@Mohammadreza-Mohammadi Mohammadreza-Mohammadi deleted the multi-input-newtoken-problem branch February 12, 2022 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants