Replies: 2 comments 1 reply
-
Any other viable use cases for accessing table's ref? If it is just scroll or get components heigh or position, i can use just use simple
|
Beta Was this translation helpful? Give feedback.
-
This broke a lot of apps for us (providing a UI library based on antd). We use {
"name": "our-lib",
"peerDependencies": {
"antd": "^5.10.0"
},
"dependencies": {
"antd": "^5.10.0"
}
} The app using our library has the following package.json: {
"name": "some-app",
"dependencies": {
"our-lib": "latest"
}
} When doing a simple We fixed this now, updating |
Beta Was this translation helpful? Give feedback.
-
📋 RFC
Summary
Align the
ref
API naming standard. Allref
should providernativeElement
as dom of the root.Basic example
Motivation
Current
ref
in antd is miss with operation and dom element. It's not extendable if already used for dom or operation.Detailed
Use
Proxy
to handle theref
logic for exist component but new object for not supportref
component yet.Drawbacks
Not affect for current usage.
Adoption strategy
Apply in minor version.
Beta Was this translation helpful? Give feedback.
All reactions