3
0
Fork 0
Commit Graph

2 Commits (0e2ba28ff5ebf7e015dce93aa0f6801ad58176ea)

Author SHA1 Message Date
Jairo Llopis 48eb4e6727
[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
2023-12-22 11:29:14 +00:00
Jairo Llopis b6ca76d338
[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
2023-12-14 12:49:51 +00:00