Skip to content

Commit 7f72356

Browse files
[IMP] shopfloor_mobile_base: date-picker - do not validate empty input
1 parent 6c941ea commit 7f72356

File tree

1 file changed

+4
-2
lines changed
  • shopfloor_mobile_base/static/wms/src/components/datepicker

1 file changed

+4
-2
lines changed

shopfloor_mobile_base/static/wms/src/components/datepicker/date_picker.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ export var DatePicker = Vue.component("date-picker-input", {
107107
this.dateInput = maskedValue;
108108
},
109109
validateAndSync() {
110-
console.log("validate and sync");
111-
if ((this.dateInput?.length || 0) !== this.dateMask.length) {
110+
if (!this.dateInput) {
111+
return;
112+
}
113+
if (this.dateInput.length !== this.dateMask.length) {
112114
this.showInvalidDateInputMessage = true;
113115
return;
114116
}

0 commit comments

Comments
 (0)