Skip to content

Event Listener & zIndex issue when using Modalbox. #2

@justinburger

Description

@justinburger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions