Mini program testing--WeChat component bug

picker-view's bindchange event (option change event)

It will be triggered with a delay as the animation ends. The current animation is too long, causing the bindchange trigger to be delayed for too long.

Steps to reproduce:After selecting "Tag A" and [OK], just scroll faster, select "Tag B", close the pop-up window directly, and open the display again. It is "Label B", and the expectation is "Label A"

Summarize:

As long as you scroll faster, the notification event will be late, causing the data the user gets after clicking the confirmation button to be different from the options he sees.

Solution:Use immediate-change to solve the bindchange delay problem

 

Guess you like

Origin blog.csdn.net/m0_56687854/article/details/127753245