You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Leaving it open, click elsewhere in the document and insert a char
Drag the color picker slider again
Close the color picker
Undo
Result: 2nd color picker change is undone, but cursor jumps to where you inserted the char. If the edit is far away, the view will scroll such that the color (the text that the undo is modifying) isn't even visible.
Expected: 2nd color picker change is undone, and cursor jumps to the color (or color is selected)
I'm guessing this occurs because programmatic edits don't explicitly move the cursor to the location before making the edit. So the CM undo record stores wherever the cursor was positioned before the colorpicker drag, and restores that location when undoing the colorpicker change, even though it has nothing to do with the edit. That would be a bug (IMHO) in the new CMv3 feature that restores the selection/cursor on undo.