Skip to content
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

navmenu: Maximum call stack size exceeded #495

Open
mcardia opened this issue Dec 15, 2016 · 5 comments
Open

navmenu: Maximum call stack size exceeded #495

mcardia opened this issue Dec 15, 2016 · 5 comments

Comments

@mcardia
Copy link

mcardia commented Dec 15, 2016

This error happens on toggle the navmenu.

<nav class="navmenu navmenu-default navmenu-fixed-left offcanvas">

The toggle code:
<li><a class="navbar-link" class="navbar-toggle" data-toggle="offcanvas" data-recalc="false" data-target=".navmenu" data-canvas="body"><i class="fa fa-tasks" aria-hidden="true"></i></a></li>

It´s only happens when the container (body) is big. I have a table there. If the table has few rows it works, but if the table has a lot of rows (>1300) it raises this error.
Any tips?

RangeError: Maximum call stack size exceeded
/gci/js/jquery.min.js:2 ga.select()
/gci/js/jquery.min.js:2 Function.ga as find
/gci/js/jquery.min.js:2 r.fn.init.find()
/gci/bootstrap/js/jasny-bootstrap.min.js:6 b.getCanvasElements()
/gci/bootstrap/js/jasny-bootstrap.min.js:6 b.show()
/gci/bootstrap/js/jasny-bootstrap.min.js:6 b.toggle()
/gci/bootstrap/js/jasny-bootstrap.min.js:6 new b()
/gci/bootstrap/js/jasny-bootstrap.min.js:6 HTMLDivElement.()
/gci/js/jquery.min.js:2 Function.each()
/gci/js/jquery.min.js:2 r.fn.init.each()

@Minstel
Copy link
Collaborator

Minstel commented Jan 11, 2017

@mcardia please create an example of this, for ex. in jsfiddle

@Minstel
Copy link
Collaborator

Minstel commented Feb 21, 2017

@mcardia I tested this and do not see an error. Tested in Crome (56.0.2924.87) and Firefox (53.0a2).
Closing as there is no feedback.

@Minstel Minstel closed this as completed Feb 21, 2017
@mcardia
Copy link
Author

mcardia commented Apr 7, 2017

https://jsfiddle.net/mcardia/06308d4j/3/

Happens with Chrome. On Firefox it works.

@jasny
Copy link
Owner

jasny commented Apr 11, 2017

Might have to do with finding fixed positioned elements.

@jasny jasny reopened this Apr 11, 2017
@allan-null
Copy link

allan-null commented Feb 11, 2021

Stumbled across this bug while working on a project using a bootstrap template, which depends on this extension to upload files.
For me it was an infinite loop on the "reset" event, because removing the line that says trigger("reset.bs.fileinput") fixes the issue. Everything works fine now.
I didn't make a pull request because that isn't probably the fix that most people will want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants