fix: Retain scroll position when navigating through document history

closes #4087
This commit is contained in:
Tom Moor
2022-09-08 13:01:01 +01:00
parent 810ef2134a
commit c2876ca396
6 changed files with 33 additions and 14 deletions

View File

@@ -6,7 +6,7 @@ import {
CompositeStateReturn,
} from "reakit/Composite";
type Props = {
type Props = React.HTMLAttributes<HTMLDivElement> & {
children: (composite: CompositeStateReturn) => React.ReactNode;
onEscape?: (ev: React.KeyboardEvent<HTMLDivElement>) => void;
};