Warn about v-model components not handled with fireEvent.change
See original GitHub issueMore often than not people relies on fireEvent.input
or fireEvent.change
to handle v-model powered inputs, thus running into issues with input value not being properly updated.
I’m wondering if we should provide some kind of warning when that happens.
Does it make sense?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:16 (13 by maintainers)
Top Results From Across the Web
How to fire an event when v-model changes? - Stack Overflow
How to fire an event when v-model changes? · 3. fiddle link is no longer working. · If the intent of calling foo()...
Read more >Component Events | Vue.js
Emitting and Listening to Events #. A component can emit custom events directly in template expressions (e.g. in a v-on handler) using the...
Read more >Examples - Testing Library
Example using v-model : // Get the input DOM node by querying the associated label. // Updates the <input> value and triggers an...
Read more >React Testing Library and the “not wrapped in act” Errors
In test, the code to render and update React components need to be included in ... So in most cases, we do not...
Read more >Handling Events :: Eloquent JavaScript
Event listeners are called only when the event happens in the context of the object they are registered on. <button>Click me</button> <p>No handler...
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
I actually found a very nice solution, I’ll try to post an example
Since this was released in #166, I’ll go ahead and close this issue, feel free to open up a new one if we’re missing some warnings!
thank you all!