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

(cherry picked from commit fa1e2d6)

Co-authored-by: Chrisando Pramudhita <chrisep8@gmail.com>
  • Loading branch information
GatsbyJS Bot and chrsep committed Feb 28, 2021
1 parent 34f5b8c commit aafe584
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby/cache-dir/loading-indicator/indicator.js
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 aafe584

Please sign in to comment.