From cc445839e3172552dacdef10d09de651c3c1c0f2 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Fri, 14 Jan 2022 13:10:33 +0800 Subject: [PATCH] [docs] explain initial value for bind scroll (#7065) Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> --- site/content/docs/02-template-syntax.md | 1 + 1 file changed, 1 insertion(+) diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index ae39c18cd9..e433750977 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -1671,6 +1671,7 @@ All except `scrollX` and `scrollY` are readonly. ``` +> Note that the page will not be scrolled to the initial value to avoid accessibility issues. Only subsequent changes to the bound variable of `scrollX` and `scrollY` will cause scrolling. However, if the scrolling behaviour is desired, call `scrollTo()` in `onMount()`. ### ``