Bug 208088 - AX: input element onKeyPress and onPaste events behave differently in webkit
Summary: AX: input element onKeyPress and onPaste events behave differently in webkit
Status: RESOLVED DUPLICATE of bug 30397
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari 13
Hardware: Mac macOS 10.14
: P2 Normal
Assignee: Nobody
URL: https://codepen.io/aesyondu/pen/KKpNXEX
Keywords: PlatformOnly
Depends on:
Blocks:
 
Reported: 2020-02-21 21:24 PST by Arvin Sevilla
Modified: 2024-01-18 07:20 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvin Sevilla 2020-02-21 21:24:49 PST
Encountered when using react-gatsby:
https://github.com/CoreyGinnivan/whocanuse/issues/31

Created a pen to demonstrate using vanilla javascript:
https://codepen.io/aesyondu/pen/KKpNXEX

When pasting on an input element, chrome and firefox fires the onpaste event. However on webkit, the onkeypress is fired first, then onpaste. I'm not sure if there is a standard, or what the standard should be. I would just like to point out that there is a difference in behavior.
Comment 1 Arvin Sevilla 2024-01-18 07:20:08 PST
I see this is a duplicate.

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