question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught RangeError in Blink and WebKit browsers

See original GitHub issue

I have a setup where I open a modal and then want to step from the currently open modal to the next one. From the second modal I want to go to either the previous modal, or the next one, and so on.

The pseudo-code of the buttons inside the modal that enable this behavior:

Modal 1

<button data-a11y-dialog-hide="modal-1" data-a11y-dialog-show="dialog-2" >next modal</button>

Modal 2

<button data-a11y-dialog-hide="dialog-2" data-a11y-dialog-show="dialog-1">prev modal</button>
<button data-a11y-dialog-hide="dialog-2" data-a11y-dialog-show="dialog-3" >next modal</button>

… and so on.

Now, when I click on the “next” button in the first modal, everything works as expected, the modal 1 hides and modal 2 shows up. In fact, the “next” button of all modals works just fine.

But when I click on the “prev” button e.g. in the second modal, to go back to the first modal, I get the following error in Chrome, Opera, and Safari (aka. Blink and WebKit browsers):

Uncaught RangeError: Maximum call stack size exceeded.

Test scenario: http://jsbin.com/bumimohexi/1/edit?html,js,output

What is causing this and how can I avoid it?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
KittyGiraudelcommented, Mar 17, 2016

Hello there. I’ll have a look soon.

0reactions
KittyGiraudelcommented, Sep 21, 2016

Cheers. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught RangeError in Blink and WebKit browsers · Issue #33
I have a setup where I open a modal and then want to step from the currently open modal to the next one....
Read more >
Uncaught RangeError: Maximum call stack size exceeded
Issue 709064: Uncaught RangeError: Maximum call stack size exceeded ... x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 ...
Read more >
Troubleshooting Uncaught RangeError: Maximum call stack ...
I am getting this error only in Safari and Chrome on Mac machine, but can't reproduce on other browsers nor on Windows.
Read more >
HTML5 not working? : r/RenPy - Reddit
Error: Uncaught RangeError: Maximum call stack size exceeded (see JavaScript ... This is a known issue in Safari and Webkit browsers.
Read more >
Why every browser switching to Blink could be bad news for ...
Microsoft has recently been the latest company to announce that their browser would put away its own engine to switch to Blink, the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found