From 4bc3f633bf9bdc1acf618cded99b6fbdc354f634 Mon Sep 17 00:00:00 2001 From: "David J. Bradshaw" Date: Sat, 6 Jul 2024 13:47:18 +0100 Subject: [PATCH] Set location.hash when navigating inPageLinks --- example/child/frame.absolute.html | 2 +- packages/core/index.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/example/child/frame.absolute.html b/example/child/frame.absolute.html index b810f66e4..7efd4e995 100644 --- a/example/child/frame.absolute.html +++ b/example/child/frame.absolute.html @@ -25,7 +25,7 @@ top: 0; right: 0; width: 100px; - height: 900px; + height: 1600px; background-color: wheat; } a.top { diff --git a/packages/core/index.js b/packages/core/index.js index 14c00d1a9..54d9c4e05 100644 --- a/packages/core/index.js +++ b/packages/core/index.js @@ -400,6 +400,8 @@ function iframeListener(event) { } scrollTo(iframeId) + window.location.hash = hash + log(iframeId, '--') }