[Bug]: dynamicOverlapHeight is not reset to baseline after table component unmounts #83
Closed
2 tasks done
Labels
bug
Something isn't working
Browser
Chrome
Package version
3.0.1
React version
18.2.0
Description
I am using a Table component with a variant set to "full-page". I am using react-router to route to a detail page and I notice the dynamicOverlapHeight is retained when the detail page loads (--awsui-overlap-height-ujkcpl is present in
). When the Table (or any component that overrides these settings) unmounts, it should reset all of the default settings in the Layout to baseline.Table uses an InternalContainer which appears to be the culprit: https://github.com/cloudscape-design/components/blob/main/src/container/internal.tsx#L59
I haven't tested but I assume to fix this we should change the layout callback as follows:
This should work as this code only overrides the offset if it is > 0:
components/src/app-layout/visual-refresh/layout.tsx
Line 125 in 7433543
Source code
N/A
Reproduction
full-page
variant.Code of Conduct
The text was updated successfully, but these errors were encountered: