Solution:
1. Do not call removeAllChildren (not very good)
2. Before adding children again, put The parent element is not touchable: setTouchEnabled(false). After adding children, call: setTouchEnabled(true) again to solve the problem.
I have to say that cocos-js 3.6 has a lot of pitfalls.
====================== The above is wrong, I am looking for the reason============ =========
Solution:
1. Do not call removeAllChildren (looks not very good)
p>
2. Before adding children again, set the parent element to be non-touchable: setTouchEnabled(false). After adding children, call: setTouchEnabled(true) again to solve the problem.
I have to say that cocos-js 3.6 has a lot of pitfalls.
====================== The above is wrong, I am looking for the reason============ =========