diff --git a/.changeset/forty-colts-ring.md b/.changeset/forty-colts-ring.md new file mode 100644 index 0000000000..d251d78ec6 --- /dev/null +++ b/.changeset/forty-colts-ring.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix Safari client:visible refresh bug diff --git a/packages/astro/src/runtime/server/astro-island.ts b/packages/astro/src/runtime/server/astro-island.ts index d3a22a5c2d..d2cf57d6ce 100644 --- a/packages/astro/src/runtime/server/astro-island.ts +++ b/packages/astro/src/runtime/server/astro-island.ts @@ -42,7 +42,7 @@ declare const Astro: { public hydrator: any; static observedAttributes = ['props']; connectedCallback() { - if (!this.getAttribute('await-children') || this.firstChild) { + if (!this.hasAttribute('await-children') || this.firstChild) { this.childrenConnectedCallback(); } else { // connectedCallback may run *before* children are rendered (ex. HTML streaming)