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

empty input value by JS #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

empty input value by JS #6

wants to merge 2 commits into from

Conversation

AnatolyPruchay
Copy link

When change input value to empty string by JS or Jquery(button), the list displayed only the last selected item.

fix: When change input value to empty string by JS or Jquery(button), the list displayed only the last selected item.
@hannaholl
Copy link
Owner

Hi,

I think I know what you're trying to achieve here, would it be possible to do it like this instead, and get rid of the other changes? On this line.

if (!scope.inputValue || scope.inputValue === '') 

If that doesn't work, could you please provide an example with your code running and explain the issue you're having in more detail?

Thanks!
Hanna

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants