@optionfactory/ful 7.0.3 → 7.0.4

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/ful.mjs CHANGED
@@ -1567,7 +1567,12 @@ class Input extends ParsedElement {
1567
1567
  this.replaceChildren(fragment);
1568
1568
  }
1569
1569
  get value() {
1570
- return this._input.value === '' ? null : this._input.value;
1570
+ const uppercase = this.hasAttribute('uppercase');
1571
+ const trim = this.hasAttribute('trim');
1572
+ const v = this._input.value;
1573
+ const uppercased = uppercase ? v.toUpperCase(): v;
1574
+ const trimmed = trim ? uppercased.trim(): uppercased;
1575
+ return trimmed === '' ? null : trimmed;
1571
1576
  }
1572
1577
  set value(value) {
1573
1578
  this._input.value = value === '' ? null : value;