Skip to content

Commit

Permalink
fix(useFullscreen): revert init state to false (alibaba#1769)
Browse files Browse the repository at this point in the history
  • Loading branch information
miracles1919 authored Jul 20, 2022
1 parent e6b4570 commit 715f4dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/src/useFullscreen/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const useFullscreen = (target: BasicTarget, options?: Options) => {
const onExitRef = useLatest(onExit);
const onEnterRef = useLatest(onEnter);

const [state, setState] = useState(Boolean(screenfull.isFullscreen));
const [state, setState] = useState(false);

const onChange = () => {
if (screenfull.isEnabled) {
Expand Down

0 comments on commit 715f4dc

Please sign in to comment.