-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.2.6
Environment
macos 14.1, Chrome 134, Vue 3.5.13
Reproduction link
Steps to reproduce
Use ref or useTemplateRef to get the native input.
What is expected?
The native input has been accessed.
What is actually happening?
The native input is undefined
Hello!
I tried to get the native input in the Input component using ref or useTemplateRef, but I keep getting undefined.
Moreover, the object I receive in ref and inspect in the dev console seems to reference itself recursively, i.e., inputRef.value.input.input.
How can I correctly get a reference to the native input?
Example in CodeSandbox (a fork from the current documentation):
π CodeSandbox - Ant Design Vue 4.2.6
I also tried this in Ant Design Vue 3.2.20, and the issue doesnβt occur there:
π CodeSandbox - Ant Design Vue 3.2.20
Metadata
Metadata
Assignees
Labels
No labels