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 21112ec commit 4165efcCopy full SHA for 4165efc
src/core/vdom/create-component.js
@@ -150,8 +150,9 @@ export function createComponent (
150
// component constructor creation
151
resolveConstructorOptions(Ctor)
152
153
- // transform component v-model data into props & events
154
- if (isDef(data.model)) {
+ // transform component v-model data into props & events.
+ // make sure to transform model only once in functional components.
155
+ if (isDef(data.model) && !isTrue(Ctor.options.functional)) {
156
transformModel(Ctor.options, data)
157
}
158
0 commit comments