Topic: Removing a badge causes error in MDB deleteChip function
root-nine priority asked 6 years ago
Alex12345 free answered 4 years ago
I have the same problem. On page I have only one chip. When I try to delete itthe method _this2.deleteChip($chipsWrapper.data('index'), $chip.index(), $chipsWrapper); calls twice and on second call i got an error
mdb.js:24229 Uncaught TypeError: Cannot read property '-1' of undefined
at jQuery.fn.init.deleteChip (mdb.js:24229)
at HTMLElement.<anonymous> (mdb.js:24108)
at HTMLDocument.dispatch (jquery.js:5201)
at HTMLDocument.elemData.handle (jquery.js:5009)
Version: MDB Pro 4.7.7
Krzysztof Wilk staff commented 4 years ago
Hi!
Now there's no public method for deleting, so it won't work. The only way to delete is to click on the cross.
Best regards
root-nine priority answered 6 years ago
Piotr Glejzer staff commented 6 years ago
Yea I see it now. We will think about this. Do you have the same problem in your files?root-nine priority commented 6 years ago
Yes I have, same problem in my files.Piotr Glejzer staff commented 6 years ago
We are very sorry. We will try to figure out this problem.Piotr Glejzer staff answered 6 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: Yes
Piotr Glejzer staff commented 6 years ago
Hi, may you show me your code about that problem? Best, Piotr