[Webkit-unassigned] [Bug 244206] New: stepUp/stepDown behavior for number inputs is inconsistent with up/down arrow keys presses

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 22 09:49:35 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=244206

            Bug ID: 244206
           Summary: stepUp/stepDown behavior for number inputs is
                    inconsistent with up/down arrow keys presses
           Product: WebKit
           Version: Safari 15
          Hardware: Unspecified
                OS: macOS 12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: tbiethman at gmail.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

To reproduce:
1. Create input element: `<input id="my-input" type="number"></input>`
2. Set a fractional value: `$('#my-input').value = '12.34'`
3. Focus the input and press the 'ArrowUp' key
4. See value is now `13`

5. Repeat steps 1 and 2
6. Call stepUp: `$('#my-input').stepUp()`
7. See value is now `13.34`, where I'd expect the value to be `13`

The behavior is similarly inconsistent with stepDown and ArrowDown. I tried setting explicit step values and calling stepUp/stepDown with explicit modifiers, it doesn't seem to make a difference.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220822/0978ad5a/attachment.htm>


More information about the webkit-unassigned mailing list