New issue
Advanced search Search tips

Issue 634426 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

We should fire paste event regardless target element

Reported by chris.a....@gmail.com, Aug 4 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36

Example URL:
https://jsfiddle.net/0wdqjp6g/

Steps to reproduce the problem:
1. Place an 'onpaste' event handler on an input element with type="date".
2. Load page and directly click the input element without clicking any other part of the web page.
3. Press CRTL-V

What is the expected behavior?
The 'onpaste' event should be fired.

What went wrong?
The 'onpaste' event is NOT fired.

If, however, you click someplace else on the page at least once, you can now select the date input and 'onpaste' events will be caught as they should.

Example: https://jsfiddle.net/0wdqjp6g/

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? No 

Does this work in other browsers? Yes 

Chrome version: 51.0.2704.103  Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 22.0 r0
 

Comment 1 by tkent@chromium.org, Aug 4 2016

Components: -Blink Blink>Editing
Labels: -OS-Windows OS-All
Status: Untriaged (was: Unconfirmed)
Summary: Paste event not firing for non-text INPUTs (was: Onpaste event not firing for date inputs)
This is reproducible with any non-text INPUT elements.  e.g. <input type=checkbox>, <input type=reset>

IMO, paste event should not be dispatched on elements without text editing.

Comment 2 by yosin@chromium.org, Aug 5 2016

Status: Available (was: Untriaged)
Summary: We should fire paste event regardless target element (was: Paste event not firing for non-text INPUTs)
According to Clipboard spec, https://www.w3.org/TR/clipboard-apis/#the-paste-action, we should fire "paste" event regardless type of element.

The paste action has no effect in a non-editable context, 
but the event fires regardless.
____^^^^^^^^^^^^^^^^^^^^^^^^^^
Project Member

Comment 3 by sheriffbot@chromium.org, Aug 7 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 4 by yosin@chromium.org, Aug 21 2017

Status: Available (was: Untriaged)

Comment 5 by yosin@chromium.org, Oct 4 2017

Labels: Pri-3
Project Member

Comment 6 by sheriffbot@chromium.org, Oct 4

Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment