question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to clear input after selected

See original GitHub issue

Hi There,

With the events supplied, I am unable to clear the input field once the user has selected the option:

...
model="new_material"
...

and in the event:

events:{
    'autocomplete-myautocomplete:selected': function(data){
        console.log(data);
        this.new_material=''; //does not clear the input field
    }
},

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
BosNaufalcommented, Oct 8, 2016

Hey @kreierson @roarkmccolgan. Please review my last commit~ 😁 Hope it will work well~

0reactions
kreiersoncommented, Oct 8, 2016

Works great! Thanks a lot for adding that feature! I would say this issue is fixed! I appreciate your work on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clear value from input field when select value from dropdown list
This will clear the input field when the dropdown selection changes: $("#group_psoft").on("change", function(){ $("#name").val(""); });
Read more >
HTML | Clearing the input field - GeeksforGeeks
To clear the entire input field without having to delete the whole ... After: Method 2: Clearing Input with the help of button....
Read more >
Solved: Text input will clear after user change selected o...
When the user change the combobox for example from small to medium the input box will reset or clear everytime the user changes...
Read more >
How To Clear Input Field on Focus - W3Schools
Learn how to clear an input field on focus. Click on the input field to clear it: Clear Input Field on Focus. Example....
Read more >
<input type="reset"> - HTML: HyperText Markup Language
Try entering some text into the text field, and then pressing the reset button. Adding a reset keyboard shortcut. To add a keyboard...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found