-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script Error at Internet Explorer 11 with Version 3.x #41
Comments
mmenu in general is not compatible with IE 11. There is a PR for automatically including Polyfills though: #40 |
The problem here is with
being the js-template for loading the menu. Why not simply use function() {} instead of () => {} not working in IE11? |
Also the trailing comma leads to a syntax error in IE11. So the more compatible version would be:
|
Yeah, I can optimize this. Also it was a mistake to call the template The code is directly pulled from the documentation of mmenu btw. |
Is it already working in IE11. i just implemented the module and activated the polyfill, but the navigation is jut thrown on the page and the trigger doesn't work. |
@operatorone the problems mentioned by @Defcon0 have not been fixed yet. |
@fritzmg Do you know, when you can fix this? |
@contaoacademy pls create a justom contao_dk_mmenu/src/Resources/contao/templates/js_mmenu.html5 Lines 15 to 19 in 3f49fc0
with: document.addEventListener(
"DOMContentLoaded", function() {
new Mmenu('#<?= $this->elementId ?>', <?= json_encode($this->options) ?>, <?= json_encode($this->configuration) ?>);
}
); If this change works, then I'll change it immediately. |
After using the polyfill option the fix works. |
|
I have a script Error when i usw the mmenu.js with version 3.0.1 or 3.0.2
The console shows:
SCRIPT1002: Syntaxfehler
Datei: mmenu.js, Zeile: 1, Spalte: 2278
The menu is not functional with IE 11. No Problems with Firefox or Chrome.
When i use Verison 2.1.1 everything ist O.K.
The text was updated successfully, but these errors were encountered: