You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have nested tab groups in my application, controlling the state of the outer Tabs doesn't work for the specific tab which contains another Tabs group.
That is, when I select said tab, the UI flickers and goes back to the previous tab.
When logging the tab change, it appears that when selecting the tab with a Tabs inside, the controlled state goes to the first tab ID of the nested Tabs object ! Maybe there's a Context bounds problem with the nested Tabs firing a change that triggers in the first Tabs group ?
Thanks in advance for your kind help or acknowledgement of the issue !
Thanks for the wonderful work :)
🤔 Expected Behavior?
I expect the tab to be selected and show its content.
😯 Current Behavior
Tabs switches for a second, then goes back to first tab.
💁 Possible Solution
No response
🔦 Context
No response
🖥️ Steps to Reproduce
functionNestedTabs(){const[firstTab,setFirstTab]=useState("a");// Log tab on changeuseEffect(()=>{console.log({ firstTab });},[firstTab]);return(<TabsselectedKey={firstTab}onSelectionChange={setFirstTab}><TabList><Tabid="a">AAAA</Tab><Tabid="b">BBBB</Tab><Tabid="c">CCC</Tab></TabList><TabPanelid="a">aaaa</TabPanel><TabPanelid="b">
bbbb
<Tabs><TabList><Tabid="x">XXXX</Tab><Tabid="y">YYYY</Tab><Tabid="z">ZZZZ</Tab></TabList><TabPanelid="x">xxxx</TabPanel><TabPanelid="y">yyyy</TabPanel><TabPanelid="z">zzzz</TabPanel></Tabs></TabPanel><TabPanelid="c">cccc</TabPanel></Tabs>);}
Version
RAC 1.2.1
What browsers are you seeing the problem on?
Firefox, Microsoft Edge
If other, please specify.
haven't tested the others
What operating system are you using?
Windowss
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered:
Provide a general summary of the issue here
When I have nested tab groups in my application, controlling the state of the outer Tabs doesn't work for the specific tab which contains another Tabs group.
That is, when I select said tab, the UI flickers and goes back to the previous tab.
When logging the tab change, it appears that when selecting the tab with a Tabs inside, the controlled state goes to the first tab ID of the nested Tabs object ! Maybe there's a Context bounds problem with the nested Tabs firing a change that triggers in the first Tabs group ?
Thanks in advance for your kind help or acknowledgement of the issue !
Thanks for the wonderful work :)
🤔 Expected Behavior?
I expect the tab to be selected and show its content.
😯 Current Behavior
Tabs switches for a second, then goes back to first tab.
💁 Possible Solution
No response
🔦 Context
No response
🖥️ Steps to Reproduce
Version
RAC 1.2.1
What browsers are you seeing the problem on?
Firefox, Microsoft Edge
If other, please specify.
haven't tested the others
What operating system are you using?
Windowss
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: