Topic: detect closed chip without firing chip wrapper div click

elmajed2007 free asked 2 years ago


detect chips on close

I used onclick event on element and it is fired but also fires click of chip div itself, how to prevent that second trigger?

Resources (screenshots, code snippets etc.)


Marcin Luczak staff answered 2 years ago


Hi,

To detect Chip deletion please use our dedicated chip events:

$('.chips').on('chip.delete', function(e, chip){
// you have the deleted chip here
});

Keep coding,

Marcin



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

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.2
  • Device: computer
  • Browser: crome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: No
Tags