pk b32fd403ec fix(tp-date-input): validate correctly when change event hasn't fired yet
validate() relied on this.value, which is only set by _inputChanged on
the change event. Submitting via Enter while focus is still in an input
field skips that event, leaving this.value undefined and causing valid
dates to fail validation.

Introduce _valueFromInputs() as the single parsing source: it reads the
three sub-inputs directly and returns a UTC-midnight DateTime.
validate()
now falls back to it when this.value is not set. _inputChanged is
refactored to call _valueFromInputs() as well, removing the duplicated
format-mapping logic.
2026-06-10 22:42:27 +02:00
2022-04-03 19:21:01 +02:00
2022-04-03 19:21:01 +02:00
2022-04-03 19:21:01 +02:00
2022-11-15 20:22:58 +01:00
2022-11-15 20:22:58 +01:00
S
Description
No description provided
Readme Apache-2.0 58 KiB
Languages
JavaScript 100%