diff --git a/src/platforms/web/compiler/directives/model.js b/src/platforms/web/compiler/directives/model.js index 0e23160c2a5..be264d25bf8 100644 --- a/src/platforms/web/compiler/directives/model.js +++ b/src/platforms/web/compiler/directives/model.js @@ -159,23 +159,6 @@ function genDefaultModel ( value: string, modifiers: ?ASTModifiers ): ?boolean { - if (process.env.NODE_ENV !== 'production') { - if (el.tag === 'input' && el.attrsMap.value) { - warn( - `<${el.tag} v-model="${value}" value="${el.attrsMap.value}">:\n` + - 'inline value attributes will be ignored when using v-model. ' + - 'Declare initial values in the component\'s data option instead.' - ) - } - if (el.tag === 'textarea' && el.children.length) { - warn( - `' - }).$mount() - expect(vm.test).toBe('foo') - expect(vm.$el.value).toBe('foo') - expect('inline content inside