Responsive-Tabs icon indicating copy to clipboard operation
Responsive-Tabs copied to clipboard

Not open first tab directly on mobile devices

Open jengi77 opened this issue 4 years ago • 1 comments

When scrollToAccordion is set to true you jump directly to the open tab on mobile devices. So a check was added to only open the first tab when the actual device is not a mobile.

jengi77 avatar Apr 14 '20 13:04 jengi77

Well, shouldn't the syntax here be:

} else if (!window.matchMedia('(max-width: 646px)').matches) {

you wrote:

} else (!window.matchMedia('(max-width: 646px)').matches) {

steinhaug avatar Jan 27 '22 15:01 steinhaug