You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is caused by some browsers' default behavior that whenever a <select> element is appended to a new parent, and its selectedIndex is -1, the browser resets it to 0. It seems Firefox is the only browser that persists the -1 value properly.
Ideally all browsers should persist the value, but I guess I can't change that so we can only add more ugly patches to Vue :(
Hi, first of all, thanks for this fantastic work.
I note that
<select>
has a different behavior when using template from DOM element thantemplate
string options onVue
initialization.When use template from DOM element,
Vue
render select with no value selected (v-model = null).When using
template
from a string options,Vue
render select with first value selected (v-model = null too).http://jsfiddle.net/8gv321no/
The text was updated successfully, but these errors were encountered: