[wp-trac] [WordPress Trac] #35832: Paste action in text field/area context menu in theme customizer leaves Save&Publish button disabled (Firefox)
WordPress Trac
noreply at wordpress.org
Sun Feb 21 23:41:49 UTC 2016
#35832: Paste action in text field/area context menu in theme customizer leaves
Save&Publish button disabled (Firefox)
--------------------------+---------------------------------------------
Reporter: xkr47 | Owner: westonruter
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.5
Component: Customize | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui, javascript, administration
--------------------------+---------------------------------------------
Comment (by azaozz):
Yes, would be good to standardize these events. According to caniuse.com
`input` works quite well except in IE8. If support there is crucial we can
fall back to using `change`. Perhaps something like:
{{{
var event = ( 'oninput' in document ) ? 'input' : 'change';
$( element ).on( event, function() ...
}}}
Of course these form elements will also need `keyup` for Enter and Esc.
But thinking we shouldn't worry about `cut`, `copy`, and `paste` for old
IE.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35832#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list