Cancel button animation for multi-line editor doesn't work after it runs
Bug #412576 reported by
Deryck Hodge
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAZR Javascript Library |
Fix Committed
|
Low
|
Barry Warsaw |
Bug Description
After the animation to slide out the cancel button runs once, the animation no longer works. To reproduce, click the edit text icon, either cancel or save the current text, and then click the edit text icon again to re-open the widget. The animation doesn't play on subsequent edits.
The cancel icon should slide into place on every open.
Changed in lazr-js: | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in lazr-js: | |
assignee: | nobody → Barry Warsaw (barry) |
status: | Triaged → In Progress |
Changed in lazr-js: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
The bug is caused by the easeOut anim not setting the "from" easeOut left margin location to 0. The second time the anim runs, the left margin is already at -4 so there's nothing for it to do. By adding "from: {left: 0}" it starts from the expected location.