@designcrowd/fe-shared-lib 1.1.6-rte-ast-14 → 1.1.6-rte-ast-15
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
|
@@ -153,7 +153,7 @@ export default {
|
|
|
153
153
|
data() {
|
|
154
154
|
return {
|
|
155
155
|
sliderValue: this.modelValue,
|
|
156
|
-
decimalRegex: /^\d
|
|
156
|
+
decimalRegex: /^\d+\.\d{0,1}$/,
|
|
157
157
|
isInteracting: false,
|
|
158
158
|
};
|
|
159
159
|
},
|
|
@@ -233,6 +233,7 @@ export default {
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
if (this.decimalRegex.test(this.sliderValue)) {
|
|
236
|
+
console.log(this.sliderValue);
|
|
236
237
|
const limitDecimal = parseFloat(newNumber).toFixed(1);
|
|
237
238
|
this.updateValue(limitDecimal, e);
|
|
238
239
|
} else {
|