React Chip input handleClose not working

Topic: React "Chip input" handleClose not working

Christian Aichner pro premium asked 12 months ago

Expected behavior

The MDB React Pro "Chip Input" component should fire an event when using:

<MDBChipsInput handleClose={this.myCloseFunction} />

Actual behavior

No event is fired when closing a chip. (The chip has been visually removed though)

This was tested by using:

// Handle the closing of one of the chips
myCloseFunction = () => {
    console.log("Please just be there already.");

Resources (screenshots, code snippets etc.)


Konrad Stępień staff answered 12 months ago

Hi @Christian Aichner,

Thank you for the founded bug!

We will fix this in the near future.

Best regards.

Christian Aichner pro premium answered 12 months ago

Hi Konrad!

I just filed two new issues regarding this component in our GitLab.

I hope this issue is being fixed soon, once I require its functionality for an important project.

Best regards, Chris

Konrad Stępień staff answered 12 months ago

Hi @Christian Aichner,

I will try to fix the problem for the next release.

Next update is planned for the 02 September and you can follow this changelog.

Kind regards, Konrad.

Please insert min. 20 characters.


Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: React
  • MDB Version: 4.19.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10 Professional
  • Provided sample code: No
  • Provided link: Yes