Skip to content

Commit

Permalink
fix: query on demand loading indicator always active on preact. (#29829)
Browse files Browse the repository at this point in the history
(cherry picked from commit fa1e2d6)
  • Loading branch information
chrsep authored and ascorbic committed Mar 1, 2021
1 parent 9ecbc81 commit 6db13cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby/cache-dir/loading-indicator/indicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export function Indicator({ visible = true }) {
<Style />
<div
data-gatsby-loading-indicator="root"
data-gatsby-loading-indicator-visible={visible}
// preact doesn't render data attributes with a literal bool false value to dom
data-gatsby-loading-indicator-visible={visible.toString()}
aria-live="assertive"
>
<div data-gatsby-loading-indicator="spinner" aria-hidden="true">
Expand Down

0 comments on commit 6db13cf

Please sign in to comment.