MDBSelect onChange event is not triggering


Topic: MDBSelect onChange event is not triggering

yellagoud@pandorarndlabs.com pro premium priority asked 3 months ago

MDBSelect onChange method is not triggering.

*_Actual behavior_*MDBSelect onChange method should trigger on selecting the option.

<MDBSelect onChange={(e) => setOption(e) data={list} />

we used following import,import { MDBSelect } from "mdb-react-ui-kit";

Please let us know how can we fix this issue?


Mateusz Lazaru staff answered 3 months ago

This code should work in the newest MDB version, but it will not in v5.0.0. Here is the documentation for select in mdb version 5.x.x, but updating the package is recommended.

https://v5-react-5.legacydocs.mdbootstrap.com/docs/react/forms/select/#docsTabsAPI


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 5.0.0
  • Device: Windows
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No
Tags