summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/forty-colts-ring.md5
-rw-r--r--packages/astro/src/runtime/server/astro-island.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/forty-colts-ring.md b/.changeset/forty-colts-ring.md
new file mode 100644
index 000000000..d251d78ec
--- /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 d3a22a5c2..d2cf57d6c 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)