sometime select's event does't work when option's vlaue in ('',0)
See original GitHub issueVue.js version
2.1.6
Reproduction Link
http://sandbox.runjs.cn/show/xu7gfzz2
Steps to reproduce
switch tag option
between value=‘’ and value=‘0’, then to see {{ selected }}
's change.
What is Expected?
the value of ‘selected’ always changes with your choose.
What is actually happening?
sometime works, sometime does’t work.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
click event on select option element doesn't work [closed]
It works because the "select" elements takes the value from its selected "option". Edit 2. Simplified again by changing $(this).val() into e.
Read more >First option in select dropdown appears selected when no ...
When a select dropdown value is bound to a component variable, and this variable doesn't match any of the options in the dropdown, ......
Read more >Select not working - options not appearing on click
Hi, I am having trouble with the material select in my application. The element looks as if it is initializing as expected, however...
Read more >SCR19: Using an onchange event on a select element ... - W3C
Navigate to the trigger select element, navigate through the options but do not change the value. Check that the matching option values are...
Read more >Selecting Elements - jQuery Learning Center
This won't work. When a selection is made using $() , an object is always returned, and objects always evaluate to true ....
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 FreeTop 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
Top GitHub Comments
Campares fails in looseEqual, I’ll make a patch.
@LinusBorg testing on chrome 56/OS X, I can verify that the fiddle is broken (whether or not it’s Vue or the fiddle’s fault, not sure).
I was able to fix the fiddle in two ways:
Either vue is getting confused by having two falsey values (‘’, 0), or vue is getting confused by the mixed types.