-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(headless, atomic): ensure components are enabled/disabled correctly when an invalid tab id is provided #4944
base: master
Are you sure you want to change the base?
Conversation
Pull Request ReportPR Title❌ Title should follow the conventional commit spec: Example: Live demo linksBundle Size
|
...less/src/controllers/core/search-parameter-manager/headless-core-search-parameter-manager.ts
Show resolved
Hide resolved
packages/headless/src/controllers/search-parameter-manager/headless-search-parameter-manager.ts
Show resolved
Hide resolved
packages/quantic/force-app/examples/main/lwc/exampleQuanticAriaLive/exampleQuanticAriaLive.html
Show resolved
Hide resolved
@@ -98,3 +101,8 @@ export const restoreSearchParameters = createAction( | |||
(payload: SearchParameters) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since tabs are now restored through a distinct action, should we mark the tab
property in the SearchParameters
interface as deprecated, or maybe even remove it altogether?
@@ -98,3 +101,8 @@ export const restoreSearchParameters = createAction( | |||
(payload: SearchParameters) => | |||
validatePayload(payload, searchParametersDefinition) | |||
); | |||
|
|||
export const restoreTab = createAction( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new action should be exposed in the public interface through the search-parameters-actions-loader
This PR ensures that when providing an invalid tab value, the active tab correctly falls back to the first available tab, with the tab-specific components enabled/disabled based on which tab is active.
https://coveord.atlassian.net/browse/KIT-3945