Prevented off-canvas menu from staying open if window is resized from mobile to desktop while open