Commit Graph

5 Commits (335e1d6aa5c87536c48d63d53bc5550e02a56178)

Author SHA1 Message Date
Carlos Roca 944a4acadc [MIG] web_widget_numeric_step: Migration to 18.0 2025-01-08 17:23:19 +01:00
Carlos Roca 0889f10f58 [FIX] web_widget_numeric_step: Remove focus to avoid annoying flickering effect
The focus introduced on the 16.0 migration is causing a flickering effect
that is a bit annoying and does not make complete sense, because if you
click more than once the cursor is positioned at the end of the text,
which makes it difficult to edit the input.

The counterpart of these changes is that to edit the input using the
keyboard we will have to click on the field. Although this is how the
module has been operating since its inception.
2024-12-23 12:11:10 +01:00
achulii ccc7cd7f56 [MIG] web_widget_numeric_step: Migration to 17.0 2024-12-23 12:11:10 +01:00
Jairo Llopis 714d7abb00 [FIX] web_widget_numeric_step: no input focus on touch screens
If you're using a tablet and click on the  or  buttons created by this module, the result was that the numeric input related to that button got focused.

On tablets, that means that the on-screen keyboard pops up. This usually triggers a layout recalculation and becomes clunky. Besides, it's useless, because if you wanted to use the keyboard, you'd have clicked on the input by yourself, and not in one of those buttons.

After this change, when using a touch screen, if you click on the +/- buttons, you won't auto-focus on the input. Thus, the keyboard won't show up.

@moduon MT-4472
2024-12-23 12:11:10 +01:00
Jairo Llopis 0d3ab6c305 [FIX] web_widget_numeric_step: always display on touch screens; avoid layout jumping otherwise
Before this patch:
- On a tablet, buttons wouldn't display (big screen; can't hover).
- On a PC, fields would make layout jumps while hovering.

@moduon MT-4472
2024-12-23 12:11:10 +01:00