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
In my page, I had used attach event for setting launcher btn for sidebar as below
$('#sidebar-right').sidebar('attach events', '.sidebar-toggle-btn')
Step1 -> clicking on the sidebar-toggle-btn, shows the sidebar.
Step2 -> When using in Desktop => clicking on the sidebar-toggle-btn, triggers the sidebar toggle event and since sidebar is already visible, it hides the sidebar as expected.
Step 2 again in Mobile => clicking on the sidebar-toggle-btn, triggers the 'clickaway' function as the button is part of the dimmed page, also it moves to showing of the sidebar as well but it also ends up calling sidebar toggle event based on the 'attach event' setting and ends up closing the sidebar.
Couldnt figure out why it happens only in mobile.
I tried in my Mobile browser(chrome) and through browser mobile emulation - both had same results.
Please help me out guys.
Thanks in Advance.
The text was updated successfully, but these errors were encountered:
There might be another explanation. The default transition is set to auto which uses is mobile to determine which animation to use. Mobile was using RegExp.test which would return false for mobile when called twice.
Hey Jack,
Thanks for the Quick response.
Would applying the same fix from your commit to build-1.7.3 fix the issue or would there be someother changes needed to fix this in 1.7.3 ?
I tried the same changes available in you commit in build-1.7.3 but it didnt solve the problem.
This issue is reproducable in http://semantic-ui.com/modules/sidebar.html also.
In my page, I had used attach event for setting launcher btn for sidebar as below
$('#sidebar-right').sidebar('attach events', '.sidebar-toggle-btn')
Step1 -> clicking on the sidebar-toggle-btn, shows the sidebar.
Step2 -> When using in Desktop => clicking on the sidebar-toggle-btn, triggers the sidebar toggle event and since sidebar is already visible, it hides the sidebar as expected.
Step 2 again in Mobile => clicking on the sidebar-toggle-btn, triggers the 'clickaway' function as the button is part of the dimmed page, also it moves to showing of the sidebar as well but it also ends up calling sidebar toggle event based on the 'attach event' setting and ends up closing the sidebar.
Couldnt figure out why it happens only in mobile.
I tried in my Mobile browser(chrome) and through browser mobile emulation - both had same results.
Please help me out guys.
Thanks in Advance.
The text was updated successfully, but these errors were encountered: