Responsive-Tabs
Responsive-Tabs copied to clipboard
Not open first tab directly on mobile devices
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.
Well, shouldn't the syntax here be:
} else if (!window.matchMedia('(max-width: 646px)').matches) {
you wrote:
} else (!window.matchMedia('(max-width: 646px)').matches) {