Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wx:for 会导致 bindtransitionend 失效 #11

Open
longyiyiyu opened this issue Jun 26, 2019 · 1 comment
Open

wx:for 会导致 bindtransitionend 失效 #11

longyiyiyu opened this issue Jun 26, 2019 · 1 comment
Labels
bug Something isn't working css about css

Comments

@longyiyiyu
Copy link
Contributor

<view class="test">
  <view wx:for="{{testData}}" wx:key="{{index}}" class="test-box" animation="{{item.anim}}" bindtransitionend="onTransitionEnd">
  </view>
</view>

anim 的动画结束之后不会执行 onTransitionEnd 回调

当不用 wx:for 的时候就是 ok 的,如下:

<view class="test">
  <view class="test-box" animation="{{testData[0].anim}}" bindtransitionend="onTransitionEnd">
  </view>
  <view class="test-box" animation="{{testData[1].anim}}" bindtransitionend="onTransitionEnd">
  </view>
  <view class="test-box" animation="{{testData[2].anim}}" bindtransitionend="onTransitionEnd">
  </view>
</view>
@longyiyiyu longyiyiyu added bug Something isn't working css about css labels Jun 26, 2019
@longyiyiyu
Copy link
Contributor Author

wx:for 的子元素上面的 bindtransitionend 也会无效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working css about css
Projects
None yet
Development

No branches or pull requests

1 participant