Skip to content

feat: inactive tab persistence for Tabs #12408

feat: inactive tab persistence for Tabs

feat: inactive tab persistence for Tabs #12408

Re-run triggered November 12, 2024 13:08
Status Failure
Total duration 6m 33s
Artifacts

build-lint-test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors
Documenter › definition for tabs matches the snapshot: src/__tests__/documenter.test.ts#L8
expect(received).toMatchSnapshot(hint) Snapshot name: `Documenter definition for tabs matches the snapshot: tabs 1` - Snapshot - 2 + Received + 9 @@ -63,12 +63,10 @@ "name": "disableContentPaddings", "optional": true, "type": "boolean", }, { - "description": "Enabling this property makes the tab content fit to the available height. - If the tab content is too short, it will stretch. If the tab content is too long, a vertical scrollbar will be shown.", "name": "fitHeight", "optional": true, "type": "boolean", }, { @@ -105,10 +103,19 @@ use the `id` attribute, consider setting it on a parent element instead.", "description": "Adds the specified ID to the root element of the component.", "name": "id", "optional": true, "type": "string", + }, + { + "defaultValue": "false", + "description": "Preserve tabs in DOM tree when they're not active + Might be useful to keep the state of individual tabs between openings + By default, inactive tabs are removed from the DOM", + "name": "preserveInactiveTabs", + "optional": true, + "type": "boolean", }, { "description": "Specifies the tabs to display. Each tab object has the following properties: - `id` (string) - The tab identifier. This value needs to be passed to the Tabs component as `activeTabId` to select this tab. - `label` (ReactNode) - Tab label shown in the UI. at src/__tests__/documenter.test.ts:8:24
build / build
Process completed with exit code 1.