@stencil/vue-output-target
Advanced tools
Comparing version 0.5.1-4 to 0.5.1-5
{ | ||
"name": "@stencil/vue-output-target", | ||
"version": "0.5.1-4", | ||
"version": "0.5.1-5", | ||
"description": "Vue output target for @stencil/core components.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
@@ -163,5 +163,18 @@ import { VNode, defineComponent, getCurrentInstance, h, inject, ref, Ref } from 'vue'; | ||
if (modelProp) { | ||
propsToAdd = { | ||
...propsToAdd, | ||
[modelProp]: props[MODEL_VALUE] !== EMPTY_PROP ? props.modelValue : modelPropValue | ||
/** | ||
* If form value property was set using v-model | ||
* then we should use that value. | ||
* Otherwise, check to see if form value property | ||
* was set as a static value (i.e. no v-model). | ||
*/ | ||
if (props[MODEL_VALUE] !== EMPTY_PROP) { | ||
propsToAdd = { | ||
...propsToAdd, | ||
[modelProp]: props.modelValue | ||
} | ||
} else if (modelPropValue !== EMPTY_PROP) { | ||
propsToAdd = { | ||
...propsToAdd, | ||
[modelProp]: modelPropValue | ||
} | ||
} | ||
@@ -168,0 +181,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48496
1008