@boobooking/dashboard-ui-components 0.11.0 → 0.11.1
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/README.md +4 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -137,7 +137,10 @@ Tailwind, `@tailwindcss/forms`, Inertia и какие-либо токены в C
|
|
|
137
137
|
`changed` — через 400 мс паузы после ввода, начиная с третьей цифры (раньше
|
|
138
138
|
событие не летит вовсе), а также сразу — без дебаунса — при опустевшем поле,
|
|
139
139
|
по клику на ластик, по Enter и по уходу фокуса. Дублей не бывает: компонент
|
|
140
|
-
помнит последнее отправленное значение и не шлёт его повторно.
|
|
140
|
+
помнит последнее отправленное значение и не шлёт его повторно. При
|
|
141
|
+
размонтировании `changed` не летит, даже если поле было в фокусе: набранный,
|
|
142
|
+
но ещё не отправленный номер не отправляется, иначе запрос страницы, с
|
|
143
|
+
которой уходят, вернул бы на неё.
|
|
141
144
|
|
|
142
145
|
### Search
|
|
143
146
|
|
package/dist/index.js
CHANGED
|
@@ -489,7 +489,7 @@ var ge = 400, _e = 3, ve = {
|
|
|
489
489
|
return { digits: q(this.modelValue) };
|
|
490
490
|
},
|
|
491
491
|
created() {
|
|
492
|
-
this.mask = null, this.debounceTimer = null, this.isWritingProgrammatically = !1, this.lastCommitted = q(this.modelValue);
|
|
492
|
+
this.mask = null, this.debounceTimer = null, this.isWritingProgrammatically = !1, this.lastCommitted = q(this.modelValue), this.isUnmounted = !1;
|
|
493
493
|
},
|
|
494
494
|
mounted() {
|
|
495
495
|
this.mask = x(this.$refs.input, {
|
|
@@ -501,7 +501,7 @@ var ge = 400, _e = 3, ve = {
|
|
|
501
501
|
}), this.syncFromModelValue(this.modelValue);
|
|
502
502
|
},
|
|
503
503
|
beforeUnmount() {
|
|
504
|
-
clearTimeout(this.debounceTimer), this.mask?.destroy();
|
|
504
|
+
this.isUnmounted = !0, clearTimeout(this.debounceTimer), this.mask?.destroy();
|
|
505
505
|
},
|
|
506
506
|
watch: { modelValue(e) {
|
|
507
507
|
e !== K(this.digits) && this.syncFromModelValue(e);
|
|
@@ -531,7 +531,7 @@ var ge = 400, _e = 3, ve = {
|
|
|
531
531
|
});
|
|
532
532
|
},
|
|
533
533
|
onBlur() {
|
|
534
|
-
this.setLazy(!0), this.digits === "" && this.writeToMask(""), this.commit();
|
|
534
|
+
this.isUnmounted || (this.setLazy(!0), this.digits === "" && this.writeToMask(""), this.commit());
|
|
535
535
|
},
|
|
536
536
|
onPaste(e) {
|
|
537
537
|
this.applyUserDigits(he(e.clipboardData?.getData("text") ?? "")), this.scheduleCommit();
|