@optionfactory/fml 9.0.0-rc18 → 9.0.0-rc19
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/dist/fml.iife.js +4 -9
- package/dist/fml.iife.js.map +1 -1
- package/dist/fml.iife.min.js +1 -1
- package/dist/fml.iife.min.js.map +1 -1
- package/dist/ful.d.mts +3 -4
- package/dist/ful.iife.js +4 -9
- package/dist/ful.iife.js.map +1 -1
- package/dist/ful.iife.min.js +1 -1
- package/dist/ful.iife.min.js.map +1 -1
- package/dist/ful.min.mjs +1 -1
- package/dist/ful.min.mjs.map +1 -1
- package/dist/ful.mjs +4 -9
- package/dist/ful.mjs.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/ful.mjs
CHANGED
|
@@ -1806,10 +1806,9 @@ class Input extends Field {
|
|
|
1806
1806
|
* `.` for `type="decimal"`, and decoded to a number under
|
|
1807
1807
|
* `v-type="number"`, where text that does not decode is answered as it is.
|
|
1808
1808
|
* Writing `null`, `undefined` or `''` empties the control; anything else is
|
|
1809
|
-
* written as its string
|
|
1810
|
-
*
|
|
1811
|
-
*
|
|
1812
|
-
* answer other values.
|
|
1809
|
+
* written as its string, replacing whatever was being typed, as a native
|
|
1810
|
+
* control's value does. Answers a `string`, a `number` or `null`; typed
|
|
1811
|
+
* `any` because subclasses answer other values.
|
|
1813
1812
|
* @type {any}
|
|
1814
1813
|
*/
|
|
1815
1814
|
get value() {
|
|
@@ -1829,11 +1828,7 @@ class Input extends Field {
|
|
|
1829
1828
|
return normalized;
|
|
1830
1829
|
}
|
|
1831
1830
|
set value(value) {
|
|
1832
|
-
|
|
1833
|
-
if (this._input.value === text) {
|
|
1834
|
-
return;
|
|
1835
|
-
}
|
|
1836
|
-
this._input.value = text;
|
|
1831
|
+
this._input.value = value === '' || value === undefined || value === null ? '' : `${value}`;
|
|
1837
1832
|
}
|
|
1838
1833
|
/**
|
|
1839
1834
|
* The control's placeholder, `null` when there is none. The control always
|