modalBox.js
modalBox.js copied to clipboard
Open multiple views on top of each other
Enhancement
On the demo page, when clicking one of the buttons, a view gets opened. While the view is open, you can press space or return to trigger the button again, creating more views on top of the existing one. Clicking in the overlay area closes all of the views, but leaves the close button floating in the window.
Possible solution: You could consider using blur() to move the focus away from the button, or shifting the focus to the close button when available.
Hello,
On this note, have added the modal and noticed the background overlay was not coming up. Turns out it was because the z-index: 1000 was set as a hard number in the .js file. This should be tied to the modal window itself minus -1 and not set to some hard number.
This also failed me when I was opening up multiple views on top of each other.
Thanks for your product. Fast loading and just what I needed. However, this did require some hacking to resolve.