Topic: Ability to add a hook for when chips are added

Marvin Herbold priority asked 1 year ago

Currently, there is an event listener for when a chip is added, but would it be possible to get an event listener for before the chip has been added, with a way cancel adding the chip and subsequent events (preventDefault(), etc)?

Either add a new event for when a chip is about to be added, or be able to specify a callback function when newing up a new mdb.chipInput?

We are trying to use chipInputs that only populate after the chip has gone through some sort of validation. Our current implementation is a bit clunky and event handlers or a hook would drastically simplify this.

Kamila Pieńkowska staff answered 1 year ago

Thank you for this idea we will discuss this with our team.

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No