Skip to content

Commit

Permalink
fix: fixes flat list using the same class as the loading element when…
Browse files Browse the repository at this point in the history
… loading
  • Loading branch information
edusig committed Sep 21, 2023
1 parent 313318c commit 5a5ddd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flat-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const FlatList = <
LoadingElement,
]);
return (
<div className={`flat-list ${className ?? ''} ${loading ? 'flat-list-loading' : ''}`}>
<div className={`flat-list ${className ?? ''} ${loading ? 'flat-list-is-loading' : ''}`}>
{HeaderElement}
{content}
{FooterElement}
Expand Down

0 comments on commit 5a5ddd9

Please sign in to comment.