Cancel button animation for multi-line editor doesn't work after it runs

Bug #412576 reported by Deryck Hodge
10
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.

Deryck Hodge (deryck)
Changed in lazr-js:
importance: Undecided → Low
status: New → Triaged
Barry Warsaw (barry)
Changed in lazr-js:
assignee: nobody → Barry Warsaw (barry)
status: Triaged → In Progress
Revision history for this message
Barry Warsaw (barry) wrote :

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.

Changed in lazr-js:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.