Skip to content

Commit c58a0ad

Browse files
fix mobile sidebar from getting stuck on iOS safari.
element.style = ''; does NOT clear up inline styles on safari. Need to target specific property we are trying to remove. element.style.transform = ''; in our case
1 parent b2f073e commit c58a0ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/sidebar-mobile/sidebar-mobile.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export default class SidebarMobile extends React.Component {
181181
_handleTouchEnd(e){
182182
// Free up all the inline styling
183183
this.container.classList.remove('no-delay');
184-
this.container.style = '';
184+
this.container.style.transform = '';
185185

186186
if (initialTouchPosition.x - lastTouchPosition.x > 100) {
187187
this._close();

0 commit comments

Comments
 (0)