sdxmessaging / ui-widgets

Build powerful form inputs/outputs with mithril and streams.
MIT License
4 stars 1 forks source link

Currency Input - Invalid Input Wrapper Issue #167

Closed MichaelPastuch closed 3 months ago

MichaelPastuch commented 3 months ago

The invalid input wrapper is not applied to currency inputs if the user enters then leaves the input without typing anything. Compare this widget to TimeInput, which works as intended.

MichaelPastuch commented 3 months ago

Widgets with a hidden input that stores the "real" value (currency, date, card date, time, checkbox, toggle, radio, and all file inputs) should indicate when they are "touched" instead of the letting the base class track this. The ValidationBase is expecting the "hidden" input to be focused, which will never happen.