-
Notifications
You must be signed in to change notification settings - Fork 84
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
Option 'hide' does not work #19
Comments
interesting, let me take a look. Are you calling Something like: $(function() {
$('body').on('click', '#otherbutton', function(e) {
$('#clickover').clickover('hide');
e.preventDefault();
}); |
Yep, that what I do and the clickover does hide but next time when you trigger it, it won't show up. If you monitor on dev tools you will see the clickover div does get instantiated for a second then gets removed from the DOM tree straight |
does that work differently if you do: $('#clickover').data().clickover.hide() |
I just ran in to this same issue - has there been any official update? |
I was able to get around this by artificially firing a 'click' event on an outside element. $('#element-outside-clickover').trigger('click') Total hack, but it works for now ... |
$('#element-outside-clickover').clickover('hide').attr("data-clickover-open", 0); should do it |
Hi,
Sometime you may want to hide the Clickover after some action other than global click or timer and the default$.popover('hide') or $ .clickover('hide') is buggy.
I have hacked my way little bit to add another option 'forcehide' and intercept it:
This is just a work around for me to get it done :)
Cheers,
Hugh
The text was updated successfully, but these errors were encountered: