-
Notifications
You must be signed in to change notification settings - Fork 48
Inconsistent Ctrl-Z Behavior in Chrome #86
Comments
Ping 🔔 |
I haven't looked at this -- if anyone has any ideas why this is happening, I'd love to hear them :) |
I'm still able to reproduce this bug. If additional context is helpful, the issue was originally filed regarding our use of iron-autogrow-textarea in PolyGerrit. It's still reproducible there also. |
Pinging again on this... The issue exists in the Polymer2 component as well. |
@notwaldorf Played around with this a little bit, and narrowed down the issue. When I comment out the following line, command-z works as expected Still not sure why this is. |
This doesn't appear to be a polymer bug, but somehow there's a difference when the event handler manipulates any innerHTML attribute: See non-polymer repro http://jsbin.com/wogided/1/edit?html,css,output I even tried to re-write the innerHTML with node creation/removal/replacement. removing/replacing nodes has the same behavior. Merely creating/appending does not. |
Omg @beckysiegel, this was AMAZING sherlocking! Thanks so much!!! |
👍 |
Inconsistent
Ctrl-Z
Behavior in ChromeExpected outcome
When typing out text in an
iron-autogrow-textarea
Ctrl-Z
command removes batches of text content per keypress. (Not individual characters.)Actual outcome
Using
Ctrl-Z
iniron-autogrow-textarea
elements inconsistently only undoes one character at a time (particularly when there is more than one line of content).Live Demo
The demo page for this element
Steps to reproduce
Ctrl-Z
to undo.Ctrl-Z
to undo repeatedly.Browsers Affected
The behavior was observed only in Chrome.
The text was updated successfully, but these errors were encountered: