Closed duhrer closed 5 months ago
The basic approach works, but doesn't yet seem to trigger a change that tools like UIO can respond to.
I switched from using jQuery
to dispatching a proper event, and it works.
Thinking it through, I think it would be most consistent to add a number input helper as a modal, similar to the text editing and select operator. The modal would:
click
function).I'm considering using our standard range input instead, but need to think through a few things.
I think an onscreen keyboard with a number pad is the way to go, with increment/decrement controls and arrows.
That way large numbers (like years) are also fairly easy to enter.
I encountered a number input on Weavly that uses an input type of text
and an inputmode
of decimal
. I added one of these to my test harness, and didn't see any problems with using the onscreen keyboard to set a value. However, my current approach doesn't work on the number input (for loop iterations) on Weavly, and I'd like to understand why.
Our simulated arrows don't work for number inputs (i.e.
<input type="number">
).We should add special casing to the
sendKey
method to detect that type and use thestepDown
andstepUp
methods available for that type of form input.