Topic: detect closed chip without firing chip wrapper div click
elmajed2007 asked 4 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 4 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
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: 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