You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
Info:
I am using only the toggle function of tablesaw.js and have tested this bug with the provided tablesaw toggle demo as to rule out issues with my code.
Bug:
When you open the list of check boxes and click away from the menu the menu closes as expected.
When you open the menu and uncheck a menu item then click away from the menu the menu does not close the only way to close the menu now is to click the menu open/close button.
The text was updated successfully, but these errors were encountered:
TheWilks
changed the title
Toggle - when check box unchecked must click button to close list
Toggle - when check box unchecked must click menu open/close button to close list
Nov 4, 2015
TheWilks
changed the title
Toggle - when check box unchecked must click menu open/close button to close list
Toggle - when menu list item check box unchecked must click menu open/close button to close list
Nov 4, 2015
I fixed this issue in my case only by just including this code in my on page JS. Maybe somthing suimiler can be applied to the actual plugin in place of this line.
This occurs because when the popup is opened, an event listener listens only once for any click on the document. I ran across this issue as well and made a change to my local copy of the tablesaw library in the closePopup function.
if(event&&$(event.target).closest("."+self.classes.popup).length){//User clicked in the popup, continue listening to document clicks to close popup.$(document).unbind('click.'+tableId,closePopup);window.clearTimeout(closeTimeout);closeTimeout=window.setTimeout(function(){$(document).one('click.'+tableId,closePopup);},15);return;}
Now, instead of just returning when the event comes from within the popup, I am unbinding and rebinding the click event, essentially resetting the event listener. This code snippet is identical to what is happening in the openPopup function.
Info:
I am using only the toggle function of tablesaw.js and have tested this bug with the provided tablesaw toggle demo as to rule out issues with my code.
Bug:
The text was updated successfully, but these errors were encountered: