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
We noticed some kind of bug case:
User opens a modal popup from slideout menu. Our modal component adds class modal-open to the <body > tag via jQuery.addClass() method. So, the class attribute of <body> tag changes from ' slideout-opento 'slideout-open modal-open (please notice a dissapeared space before slideout-open). Then, we need to close slideout programmatically which is done by Slideout.Close() method. However, this method removes the class in the following way: html.className = html.className.replace(/ slideout-open/, ''); Source: Line 123
i.e. it supposes class slideout-open to have a space before it.
Why can't we replace slideout-open class without the space before it? This will solve this case and will not break any other.
The text was updated successfully, but these errors were encountered:
Thank the authors for this nice lib.
We noticed some kind of bug case:
User opens a modal popup from slideout menu. Our modal component adds class
modal-open
to the<body >
tag via jQuery.addClass() method. So, the class attribute of<body>
tag changes from ' slideout-opento 'slideout-open modal-open
(please notice a dissapeared space before slideout-open). Then, we need to close slideout programmatically which is done by Slideout.Close() method. However, this method removes the class in the following way:html.className = html.className.replace(/ slideout-open/, '');
Source: Line 123i.e. it supposes class
slideout-open
to have a space before it.Why can't we replace
slideout-open
class without the space before it? This will solve this case and will not break any other.The text was updated successfully, but these errors were encountered: