samuelventura / athasha

Automation Now
MIT License
0 stars 0 forks source link

Screen designer: one label get the settings of the previous one upon selection change #47

Closed samuelventura closed 2 years ago

samuelventura commented 2 years ago

To reproduce:

samuelventura commented 2 years ago

The solution was to delay the selection that happened on the onclick event to avoid the selected control to change before the blur of the editing input fired. The delay was implemented with a setTimeout.

The blur handler is part of the new validation model implemented in check.js that allowed to restore a previous or default valid value to the input if the focus is lost in an invalid state. This allows also to safely type temprary/transitional invalid values which makes editing more less cumbersome.

samuelventura commented 2 years ago

Fixed in 234b28e8596c20e53dbcb8c193adf904e3e4e45d