Topic: don't work inputref in select component
behzad soleimani free asked 4 years ago
hi! how can i use a ref in a select element?
this doesn't work:
<MDBSelect
inputRef={ref=>console.log(ref)}
/>
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Opened
Specification of the issue
- ForumUser: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.26.0
- Device: Asus - laptop
- Browser: Chrome
- OS: win 10
- Provided sample code: No
- Provided link: No
Jakub Chmura staff commented 4 years ago
As you can see on this page https://mdbootstrap.com/docs/react/forms/select/#docsTabsAPI there is no prop that will be returning a reference to select.
We are currently working on the refactor of the select component and it is possible that the new version will provide props with access to references.
Best, Kuba