Topic: Removing a badge causes error in MDB deleteChip function
Piotr Glejzer staff answered 6 years ago
root-nine pro premium 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 pro premium 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.Alex12345 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
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- 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