Skip to content

Commit 3c49d01

Browse files
committed
Fixed tab index bug
1 parent bce12c3 commit 3c49d01

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/remix-ide-e2e/src/tests/script-runner.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const tests = {
7777
.waitForElementPresent('*[data-id="create-semaphore"]')
7878
.scrollAndClick('*[data-id="create-semaphore"]')
7979
.modalFooterOKClick('TemplatesSelection')
80+
.pause()
8081
// .waitForElementVisible('*[data-id="treeViewLitreeViewItemcircuits/semaphore.circom"]')
8182
.waitForElementVisible({
8283
locateStrategy: 'xpath',

libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,14 +615,14 @@ export const TabsUI = (props: TabsUIProps) => {
615615
>
616616
<TabList className="d-flex flex-row align-items-center">
617617
{props.tabs.map((tab, i) => (
618-
tab.show && <Tab className="" key={tab.name} data-id={tab.id}>
618+
<Tab className={tab.show ? '' : 'd-none'} key={tab.name} data-id={tab.id}>
619619
{renderTab(tab, i)}
620620
</Tab>
621621
))}
622622
<div style={{ minWidth: '4rem', height: '1rem' }} id="dummyElForLastXVisibility"></div>
623623
</TabList>
624624
{props.tabs.map((tab) => (
625-
tab.show && <TabPanel key={tab.name}></TabPanel>
625+
<TabPanel key={tab.name}></TabPanel>
626626
))}
627627
</Tabs>
628628

0 commit comments

Comments
 (0)