Why chips events not working correctly?


Topic: Why chips events not working correctly?

Sanches asked 5 years ago

Why in pro version chips are not working correctly?

// MY JQUERY code sample as follows: 
$('.chips').on('chip.add', function(e, chip){
      console.log(chip.tag); // works
});

$('.chips').on('chip.delete', function(e, chip){
      console.log(chip.tag); // works 
});

$('.chips').on('chip.select', function(e, chip){
     console.log(chip.tag); 
     // NOT WORKING THOUGH WHEN CHIP SELECTED ATTRIBUTE SELECTED IS ADDED 
}); 

$('.chips-placeholder').materialChip({
    placeholder: 'ENTER A TAG',
    secondaryPlaceholder: '+TAGS',
});


// MY HTML CODE is as follows:
<div class="chips chips-placeholder"></div>

I've paid for pro version why it's NOT working properly?


Mateusz Łubianka staff commented 5 years ago

Hi @Sanches,

You are right, the chips 'onSelect' function doesn't work. I think this is a little bug so I will create a task with this issue and our team will fix this as soon as possible. Thank you for this notification.

Best,


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: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.11.0
  • Device: Laptop
  • Browser: chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No
Tags