vue-loading-overlay: Maximum call stack size exceeded, bootstrap modal
This error occurs when we show then hide the loading a few time or when another bootstrap modal or sweet alert is about to show alongside with the loading.
The error log is:
Uncaught RangeError: Maximum call stack size exceeded.
at HTMLDocument.<anonymous> (modal.js:289)
at HTMLDocument.dispatch (jquery.min.js:2)
at HTMLDocument.y.handle (jquery.min.js:2)
at Object.trigger (jquery.min.js:2)
at Object.simulate (jquery.min.js:2)
at HTMLDocument.n (jquery.min.js:2)
at a.focusIn (vue-loading-overlay@3:1)
at HTMLDocument.<anonymous> (modal.js:289)
at HTMLDocument.dispatch (jquery.min.js:2)
at HTMLDocument.y.handle (jquery.min.js:2)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 8
- Comments: 16 (5 by maintainers)
Commits related to this issue
- ABYSSP-367 Modal Maximum call stack size exceeded https://github.com/ankurk91/vue-loading-overlay/issues/26 — committed to apiportal/abyss-web by monasdyas 5 years ago
- Merge pull request #15 in ABYSS/abyss-mars from feature/ABYSSP-382-yeni-abyss-create-proxy-api-fonksiyonunun-eklenmesi to develop * commit 'bec2d589632d415e8dc54fd2ace3d02ad363a185': ABYSSP-382 Pro... — committed to apiportal/abyss-web by hakanozen 5 years ago
- Fix, #26 — committed to ankurk91/vue-loading-overlay by ankurk91 4 years ago
:no-enforce-focus=“true” is solution!!
Had to set no-enforce-focus bootstrap-vue b-modal component. Try focus = false with modal options or the data-focus=false attribute on the modal.
https://bootstrap-vue.js.org/docs/components/modal/
Try deleting the tabindex=“-1” from the modals.
Since the sidebar that I use has the z-index of
1100
I’ve change my style to:And it seems work well now, but my team will have to test all pages. Hoping it works 100%.
I had a similar issue and performing NoCodeMonkey suggestion to set no-enforce-focus worked for me. Thanks