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

Event Listener & zIndex issue when using Modalbox. #2

Open
justinburger opened this issue Jan 12, 2010 · 0 comments
Open

Event Listener & zIndex issue when using Modalbox. #2

justinburger opened this issue Jan 12, 2010 · 0 comments

Comments

@justinburger
Copy link

First Off: Big fan of the library!

I'm having issues using the calendar view when the input element and/or trigger element are displayed from within a Modalbox.

The only way I was able to get the popup calendar to display is by setting the zIndex on the container to be greater than that of the modalbox from within the showAt method of Calendar. Setting the zIndex solves that portion of the issue.

The other issue seems to be with actually capturing the event when it's triggered. Modalbox has two methods of displaying a modalbox: Ether by displaying a hidden div as it's contents, or by using ajax to pull content for use. In the former, the event is never triggered when I click the input box contained within the modal window. But, if I set the div display to block & click the input outside of the modalwindow it works fine.

Again, thanks for a great library. If you need any further information let me know. I was able to create a workaround by creating a simple method in Calendar which can be called directly to display the calendar popup, which willows me to call the method onClick, rather than adding an event listener after the fact.

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

No branches or pull requests

1 participant