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
…) (#29882)

(cherry picked from commit fa1e2d6)

Co-authored-by: Chrisando Pramudhita <chrisep8@gmail.com>
  • Loading branch information
GatsbyJS Bot and chrsep authored Mar 1, 2021
1 parent 9ecbc81 commit 706a754
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 706a754

Please sign in to comment.