Current formUpdated event is not great, it doesn't trigger when hitting delete/backspace in text fields, doesnt react to copy/paste.
- Make the event trigger for backspace, delete, copy/paste, input (when using chinese/japanese input methods)
- Make views, machine name use this event instead of their own.
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | core-js-improve-formUpdate-2456225-6.patch | 1.7 KB | drupaldrop |
| #5 | core-js-improve-formUpdate-2456225-5.patch | 1.64 KB | nod_ |
| #2 | core-js-improve-formUpdate-2456225-1.patch | 657 bytes | nod_ |
Comments
Comment #1
nod_Looks like the
inputevent is all we need. Tagging IE8 because it's not supported by it.Comment #2
nod_Comment #3
fabianx commentedIt's a bug, not a task :).
Comment #4
alexpottTested using http://jsfiddle.net/6bSX6/ and can confirm the bug. But what happened to
From the issue summary?
Comment #5
nod_Here it is.
Comment #6
droplet commentedrequired to add `formUpdated` event here.
Comment #7
droplet commentedComment #8
nod_Um not sure what you mean here
Comment #9
droplet commentedwired caches on my end. It wasn't load form.js after clean cache. But helping to find a bug #2490146: Prevent empty request on machine name transliterate.
Re-tested #5. It worked on Mac & Windows, I can't confirm it with Linux..
https://www.drupal.org/node/812354#comment-3072460
(Overall, it's better than now)
Comment #10
fabianx commentedLooks great to me.
Comment #13
fabianx commentedRTBC, random test fail (go to failed in browser test base ...)
Comment #17
fabianx commentedComment #18
drupaldrop commentedpatch is rerolled - there were no conflicts - Auto merge
Comment #19
nod_Comment #20
drupaldrop commentedComment #21
fabianx commentedBack to RTBC
Comment #22
wim leersYay! This also improves things for In-Place Editing :)
Comment #23
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed a9f2eea and pushed to 8.0.x. Thanks!