fix(components): [tree] add optional chains to ensure el$ exists#23137
Conversation
commit: |
|
🧪 Playground Preview: https://element-plus.run/?pr=23137 |
|
I have tried many examples with tree-select and tree in vue blank vue project but can't reproduce the error. Can you send a reproduction to confirm the issue please ? |
|
This error may occur in the development environment, not 100% of the time. It may occur when there are too many code modifications, which can lead to layout abnormalities. I suggest adding judgment. |
|
This is a reproduced video:Video |
|
Ok we can apply the patch but can you confirm the bug is still here with the current dev version ? We migrate from vue 3.2 to 3.5. See #21021 for the installation. |
|
Yes, currently they are all the latest versions. |
|
Next time try to make a reproduction to simplify the process. I can't judge if it's really related to us or not. More than that, i see there are other warnings/error, i'm not sure if this patch will be really helpful to you. |
el$ exists
|
@xjh22222228 Thanks for your contribution! ❤️ |

Hot updates may cause $el to not exist, requiring enhanced verification.
devbranch.