Open
Description
Vue version
3.2.47
Link to minimal reproduction
Steps to reproduce
if I click toggleVisible
many times,
- the
refDivSingle
toggle between null and div - the
refCompSingle
toggle between null and {} - the
refDivArr.length
increase more and more <-- error here - the
refCompArr.length
toggle between 3 and 0
if I use ref function, it don't get null
What is expected?
the refDivArr.length
should toggle between 3 and 0, same as the refCompArr.length
What is actually happening?
the refDivArr.length
increase more and more
System Info
No response
Any additional comments?
No response