We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9bef75 commit 5925ad3Copy full SHA for 5925ad3
src/platforms/web/runtime/directives/model.js
@@ -20,7 +20,7 @@ if (isIE9) {
20
}
21
22
export default {
23
- bind (el, binding, vnode) {
+ inserted (el, binding, vnode) {
24
if (process.env.NODE_ENV !== 'production') {
25
if (!modelableTagRE.test(vnode.tag)) {
26
warn(
@@ -32,13 +32,12 @@ export default {
32
33
34
if (vnode.tag === 'select') {
35
- setSelected(el, binding, vnode.context)
+ const cb = () => {
36
+ setSelected(el, binding, vnode.context)
37
+ }
38
+ cb()
39
/* istanbul ignore if */
40
if (isIE || isEdge) {
- const cb = () => {
- }
41
- nextTick(cb)
42
setTimeout(cb, 0)
43
44
} else if (vnode.tag === 'textarea' || el.type === 'text') {
0 commit comments