@itfin/components 1.2.132 → 1.2.134
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/package.json
CHANGED
|
@@ -53,7 +53,6 @@ class itfModal extends Vue {
|
|
|
53
53
|
@Prop({ type: Boolean, default: false }) closable
|
|
54
54
|
@Prop({ type: Boolean, default: false }) closeIcon
|
|
55
55
|
@Prop({ type: Boolean, default: false }) persistent
|
|
56
|
-
@Prop({ type: Boolean, default: false }) slider
|
|
57
56
|
@Prop({ type: Boolean, default: false }) escClose
|
|
58
57
|
@Prop({ type: Function, default: null }) onEscClose;
|
|
59
58
|
@Prop({ type: Boolean, default: true }) appendToBody;
|
|
@@ -157,7 +157,7 @@ class itfMoneyField extends Vue {
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
setValue (val) {
|
|
160
|
-
if (!isNumeric(val)) {
|
|
160
|
+
if (!isNumeric(val) || (val || '').toString().match(/\..*0$/)) { // що не видаляло останній нуль вкінці
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
163
|
this.$emit('input', stringToNumber((val || '').toString().replace(/,/g, '')));
|