[ 
https://issues.apache.org/jira/browse/WEEX-346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adam Feng reassigned WEEX-346:
------------------------------

    Assignee: qz  (was: Adam Feng)

> call animation.transition in mounted hook immediately cause problems
> --------------------------------------------------------------------
>
>                 Key: WEEX-346
>                 URL: https://issues.apache.org/jira/browse/WEEX-346
>             Project: Weex
>          Issue Type: Bug
>         Environment: weex SDK 0.18.0, jsfm 0.24.4, on iOS 11.2 iphon10,3
>            Reporter: Danz He
>            Assignee: qz
>            Priority: Major
>
> demo: [http://dotwe.org/vue/eaf53504400d435144527a36053f9a7e]
> *How to reproduce error*: scroll the list to the middle (near bottom), a 
> message toast should show in page and only show once. And after that, the 
> message will fade out by the call of animation.transition. It probably act 
> normal in the first time, but reenter the page it may fail.
> *Preliminary investigation*: It may caused by the immediate call in the 
> mounted hook, which are guaranteed to be called exactly once when scrolling 
> to the middle of the page. Somehow the animation.transition call influenced 
> the styles immediately without a transition animation. But when I put it in a 
> timer, and execute it with 0 latency (which will still be triggered in the 
> next loop cycle, not immediately), then it works well.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to