aloha-vue 2.57.6 → 2.57.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/aloha-vue.es.js +134 -134
- package/dist/aloha-vue.umd.js +27 -27
- package/package.json +1 -1
- package/src/ui/AInputCurrency/compositionAPI/InputEventsAPI.js +5 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aloha-vue",
|
|
3
|
-
"version": "2.57.
|
|
3
|
+
"version": "2.57.7",
|
|
4
4
|
"description": "Aloha-vue is a JavaScript library that provides a wide range of accessible components and directives for Vue.js. Accessibility is of paramount importance to us, and we have designed all our components to meet accessibility compliance criteria. This library is a valuable tool for frontend developers and has already been used in three projects, including two large-scale ones",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility compliance criteria",
|
|
@@ -95,7 +95,7 @@ export default function InputEventsAPI(props, {
|
|
|
95
95
|
if (!validationOnChange.value) {
|
|
96
96
|
return false;
|
|
97
97
|
}
|
|
98
|
-
if (!required.value && (isNil(val) || val === "")) {
|
|
98
|
+
if ((!required.value || skipRequiredModelInit.value) && (isNil(val) || val === "")) {
|
|
99
99
|
return false;
|
|
100
100
|
}
|
|
101
101
|
const numValue = getNumValue(val);
|
|
@@ -644,7 +644,7 @@ export default function InputEventsAPI(props, {
|
|
|
644
644
|
valueToCheck = splitVal[0];
|
|
645
645
|
}
|
|
646
646
|
if (isNil(valueToCheck) || valueToCheck === "") {
|
|
647
|
-
if (required.value) {
|
|
647
|
+
if (required.value && !skipRequiredModelInit.value) {
|
|
648
648
|
if (min.value > 0) {
|
|
649
649
|
const value = decimalDivider.value
|
|
650
650
|
? `0${ decimalDivider.value }${ times(decimalPartLength.value, () => "0").join("") }`
|
|
@@ -653,12 +653,10 @@ export default function InputEventsAPI(props, {
|
|
|
653
653
|
} else {
|
|
654
654
|
setMinimumValue({ trigger: "blur", triggerDetails: "blur" });
|
|
655
655
|
}
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
656
|
+
} else {
|
|
657
|
+
const value = modelUndefinedLocal.value;
|
|
658
|
+
setValueLocal({ value, trigger: "blur", triggerDetails: "blur" });
|
|
659
659
|
}
|
|
660
|
-
const value = modelUndefinedLocal.value;
|
|
661
|
-
setValueLocal({ value, trigger: "blur", triggerDetails: "blur" });
|
|
662
660
|
onBlur($event);
|
|
663
661
|
|
|
664
662
|
return;
|