Telefonica/mistica-web

Console error when use Tabs component

andyindahouse opened this issue · 0 comments

Describe the bug
When you change between Tabs in Tabs component, you get this JS error in console:

Captura de Pantalla 2023-01-31 a las 11 07 48

This because useAriaId is generating ids that aren't valid like selectors for document.querySelector.

You can reproduce it here (See console when you change between tabs):

https://mistica-web.vercel.app/playroom#?code=N4Igxg9gJgpiBcIA8AVAhgIwM4B0B2ABAVjADYxgAuMUAknrAB4C8wA5jJQMqVrUAUAcgDWMAJ6CAlAQA%2BMggAYAvviIQ8AYQAWaPB1b8AlgxiNpzAHwAC4KqLFOPPjCGiJAGgLGmku0pWEBLzYrADaggCMgp6CAEyCALoAdAC2aAAO-PzUjJTmFgT8toFEOZTudkSGkHjwBHgArqSkFYFKkpIBAPQWIEpAA

Expected behavior

Don't get a console error when we use this component.