We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rigor789
Learn more about funding links in repositories.
Report abuse
1 parent be001ce commit 4cc399eCopy full SHA for 4cc399e
platform/nativescript/compiler/directives/model.js
@@ -1,9 +1,9 @@
1
import { addHandler, addAttr } from 'compiler/helpers'
2
import { genComponentModel, genAssignmentCode } from 'compiler/directives/model'
3
-import { getViewMeta } from '../../element-registry'
+import { isKnownView, getViewMeta } from '../../element-registry'
4
5
export default function model(el, dir, _warn) {
6
- if (el.type === 1 && el.plain) {
+ if (el.type === 1 && isKnownView(el.tag)) {
7
genDefaultModel(el, dir.value, dir.modifiers)
8
} else {
9
genComponentModel(el, dir.value, dir.modifiers)
0 commit comments