Topic: cannot declare a let variable twice error in mdb.min.js
ebebendel pro asked 6 years ago
ebebendel pro answered 6 years ago
ebebendel pro commented 6 years ago
tried mdb.lite.min.js from the new MDB-Pro_4.5.12 work well too!! So declaration problem is in the minimized mdb.min.jsSebastian Kaczmarek staff commented 6 years ago
In the 4.5.10 version, there was a bug which was causing this error. It has been fixed with 4.5.11+. So is your problem still occurring?
ebebendel pro commented 6 years ago
yes indeed.
Same Problem with 4.5.11, 4.5.12 and 4.5.13
you can reproduce the issue with safari browser or ie11
actual version 4.5.13 mdb.js line 15477 let inputSelector declaration...
(function ($) {
let inputSelector = `${['text', 'password', 'email', 'url', 'tel', 'number', 'search', 'search-md'].map(function (selector) {
return `input[type=${selector}]`;
}).join(', ')}, textarea`;
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.5.10
- Device: independent
- Browser: ie11/Safari
- OS: windows/MacOS
- Provided sample code: No
- Provided link: No
Sebastian Kaczmarek staff commented 6 years ago
Have you tried using `.materialSelect()` instead of `.material_select()` which is deprecated as mentioned in the changelog (https://mdbootstrap.com/changelog/#v4-5-9)?