Bug 258027 - <input type="number" /> input event emits empty string with decimal place
Summary: <input type="number" /> input event emits empty string with decimal place
Status: RESOLVED DUPLICATE of bug 254077
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari 16
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-06-13 08:30 PDT by tom.hilton
Modified: 2023-09-02 02:51 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tom.hilton 2023-06-13 08:30:43 PDT
Steps to reproduce:

Have an <input type="number" /> and listen to the input event, start typing a number then add a decimal place.

Actual results:

The emitted input event event.target.value is an empty string.

Expected results:

event.target.value should be the number without the decimal place, for example if you type "12.", emit "12". It used to do this in Safari v15.6
Comment 1 Radar WebKit Bug Importer 2023-06-20 08:31:16 PDT
<rdar://problem/111042508>
Comment 2 Ahmad Saleem 2023-09-02 02:51:14 PDT

*** This bug has been marked as a duplicate of bug 254077 ***