onInputChange not working properly when multiple is true
See original GitHub issueHello,
I’m using react-bootstrap-typeahead with redux-forms. onInputChange works perfectly if multiple is set to false.
The code:
<Typeahead
clearButton
emptyLabel="No matches found !"
multiple
options={field.options}
onInputChange={(value) => {
// do something ...
}
}
{...field.input}
/>
The problem is that value will always be an empty string.
Thank you and have a nice day 😃
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Event not firing on input change for appended elements
Your fiddle doesn't append any form elements. But if you append elements, you'll need to set the change event on each element as...
Read more >oninput Event - W3Schools
The oninput event occurs when an element gets user input. This event occurs when the value of an <input> or <textarea> element is...
Read more >Communicating with Shiny via JavaScript
Inputs send values from the client to the server, and when the server has values for the client to display, they are received...
Read more >API - React Select
If true , close the select menu when the user scrolls the document/body. If a function, takes a standard javascript ScrollEvent you return...
Read more >How to use debounce on input change with React-hook-form ...
The function we passed to the debounce would trigger, but the validation functions did not work. I've gone down that path for a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ericgio @bradeac fwiw, I had a similar issue that was resolved by changing
onInputChange
toonChange
when using multiple. Thank you @ericgio for a very nice library.I ran into the same problem and the solution proposed by @scuerda worked for me. Thanks everyone!