Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/famous-gorillas-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/polaris': patch
---

[IndexTable] Conditionally render loading markup to fix loading component
4 changes: 2 additions & 2 deletions polaris-react/src/components/IndexTable/IndexTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ function IndexTableBase({
exitActive: styles['LoadingContainer-exit-active'],
};

const loadingMarkup = (
const loadingMarkup = loading ? (
<CSSTransition
in={loading}
classNames={loadingTransitionClassNames}
Expand All @@ -571,7 +571,7 @@ function IndexTableBase({
</div>
</div>
</CSSTransition>
);
) : null;

const stickyTableClassNames = classNames(
styles.StickyTable,
Expand Down