Skip to content

Commit b24856a

Browse files
erwanMarmelabdjhi
andauthored
Apply suggestions from code review
Co-authored-by: Gildas Garcia <1122076+djhi@users.noreply.github.com>
1 parent 71e12c1 commit b24856a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/Buttons.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ It also supports [all the other `<Button>` props](#button).
600600

601601
### `scrollToTop`
602602

603-
By default, react-admin scrolls to top on each redirection. You can disable it as follows:
603+
By default, react-admin scrolls when redirecting to the create view. You can disable it as follows:
604604

605605
```jsx
606606
const CloneButtonWithoutScrollToTop = () => <CloneButton scrollToTop={false} />
@@ -699,7 +699,7 @@ It also supports [all the other `<Button>` props](#button).
699699

700700
### `scrollToTop`
701701

702-
By default, react-admin scrolls to top on each redirection. You can disable it as follows:
702+
By default, react-admin will scroll the page to the top after redirecting. You can disable it as follows:
703703

704704
```jsx
705705
const CreateButtonWithoutScrollToTop = () => <CreateButton scrollToTop={false} />
@@ -980,7 +980,7 @@ It also supports [all the other `<Button>` props](#button).
980980

981981
### `scrollToTop`
982982

983-
By default, react-admin scrolls to top on each redirection. You can disable it as follows:
983+
By default, react-admin will scroll the page to the top after redirecting. You can disable it as follows:
984984

985985
```jsx
986986
const EditButtonWithoutScrollToTop = () => <EditButton scrollToTop={false} />
@@ -1217,7 +1217,7 @@ It also supports [all the other `<Button>` props](#button).
12171217

12181218
### `scrollToTop`
12191219

1220-
By default, react-admin scrolls to top on each redirection. You can disable it as follows:
1220+
By default, react-admin will scroll the page to the top after redirecting. You can disable it as follows:
12211221

12221222
```jsx
12231223
const ShowButtonWithoutScrollToTop = () => <ShowButton scrollToTop={false} />

0 commit comments

Comments
 (0)