@featherds/composables
Advanced tools
Comparing version 0.2.4 to 0.2.5
{ | ||
"name": "@featherds/composables", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"publishConfig": { | ||
@@ -10,3 +10,3 @@ "access": "public" | ||
"dependencies": { | ||
"@featherds/utils": "^0.2.4", | ||
"@featherds/utils": "^0.2.5", | ||
"lodash.debounce": "^4.0.8", | ||
@@ -20,3 +20,3 @@ "vue": "^3.1.0-0" | ||
"types": "./index.d.ts", | ||
"gitHead": "14a6e4fa352587dafe9f5e533d289439b8c3ca74" | ||
"gitHead": "8178471231a961203ce2380b3435eda2e1e9eb39" | ||
} |
@@ -14,4 +14,10 @@ import { ref, watch, watchEffect, computed, provide } from "vue"; | ||
//select the radio that matches the current value | ||
if (!!modelValue.value && !currentSelected.value) | ||
//select the radio that matches the current value | ||
if ( | ||
modelValue.value !== undefined && | ||
modelValue.value !== null && | ||
!currentSelected.value | ||
) { | ||
currentSelected.value = radios.value[values.indexOf(modelValue.value)]; | ||
} | ||
//if nothing is selected then set the first property on first radio that isnt disabled | ||
@@ -18,0 +24,0 @@ if (!currentSelected.value && radios.value.length) { |
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
40411
1019
Updated@featherds/utils@^0.2.5