Chip select event doesn't work


Topic: Chip select event doesn't work

Rahul Soni pro asked 6 years ago

hi Chip select event isn't working for me, below is the code i have used. <div class="chips chips-initial"></div> var chip = { tag: 'chip content', image: '<a href="https://mdbootstrap.com/img/Photos/Avatars/img(28)&quot; rel="nofollow">https://mdbootstrap.com/img/Photos/Avatars/img(28)</a&gt;.jpg', //optional id: 1, //optional some: 'sdf', sdf: 2 }; $('.chips-initial').materialChip({data: [chip]}); $('.chips').on('chip.add', function(e, chip){ console.log(chip); console.log(e); }); $('.chips').on('chip.delete', function(e, chip){ console.log(chip); console.log(e); }); $('.chips').on('chip.select', function(e, chip){ console.log(chip); console.log(e); });

Piotr Glejzer staff commented 6 years ago

Hi, what is not working in your code? Is image not loading? var chip = { tag: 'chip content', image: 'https://mdbootstrap.com/img/Photos/Avatars/img(28).jpg', //optional id: 1, //optional some: 'sdf', sdf: 2 };

Rahul Soni pro commented 6 years ago

well, the "chip.select" event isn't working?

Rahul Soni pro commented 6 years ago

well, the "chip.select" event isn't working?

Piotr Glejzer staff commented 6 years ago

I'm very sorry, it should be work. I'm gonna check it. Did you download the latest version of MDB PRO 4.5.9?

Rahul Soni pro commented 6 years ago

no it doesn't work with latest version as well.

Piotr Glejzer staff commented 6 years ago

Hi, ok, I checked this. It's bug. We will try to figure out why it is not working. We are very sorry about this. If we will fix this I will let you know. Have a nice day. Best, Piotr

FREE CONSULTATION

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

Status

Closed

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: Yes