don't work inputref in select component


Topic: don't work inputref in select component

behzad soleimani asked 5 years ago

hi! how can i use a ref in a select element?

this doesn't work:

    <MDBSelect
        inputRef={ref=>console.log(ref)}
    />

Jakub Chmura staff premium commented 5 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


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: 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
Related topics