Skip to content

Unable to close the menu when clicking on HTML tag or BODY tag #293

Closed
@Romanow88

Description

@Romanow88

Please add this fix to the code:

        $( document ).bind( "mousedown.selectmenu-" + this.ids[ 0 ], function( event ) {
            //check if open and if the clicket targes parent is the same
            if (!event.target.offsetParent) {
                self.close(event);
                return;
            }
            if ( self.isOpen && self.ids[ 1 ] != event.target.offsetParent.id ) {
                self.close( event );
            }
        });

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions