useFullscreen hooks on custom element always returns false
See original GitHub issueWhat package has an issue
Describe the bug
When using the use-fullscreen
hook on a Custom root element, the fullscreen property is always false.
const { ref: videoFullscreenRef, toggle, fullscreen } = useFullscreen();
// fulscreen is always false
return (
<PlayerWrapper ref={videoFullscreenRef}>
{/* rest of children */}
<button>{fullscreen ? <FiMinimize2 /> : <FiMaximize2 />}</button>
</PlayerWrapper>
)
In which browser did the problem occur
Chrome Version 99.0.4844.84 (Official Build) (x86_64)
If possible, please include a link to a codesandbox with the reproduced problem
No response
Do you know how to fix the issue
No
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Possible fix
No response
Issue Analytics
- State:
- Created a year ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
react-use/useFullscreen.md at master - GitHub
Display an element full-screen, optional fallback for fullscreen video on iOS. ... toggle] = useToggle(false); const isFullscreen = useFullscreen(ref, show, ...
Read more >Say Hello to React Browser Hooks - NearForm
'React Browser Hooks' is an Open Source library containing several custom hooks that integrate with common browser functionality.
Read more >How to play HTML5 Video in full screen on button click in react js
I'm trying to show video in fullscreen on click of external button.I tried with ref and document.getElementByid() .It was throwing error for ...
Read more >useFullscreen — Display an Element or Video Full-screen
In this React Hooks tutorial, we'll learn about useFullscreen — Display an element full-screen, optional fallback for fullscreen video on iOS.
Read more >react-use | Yarn - Package Manager
useDefault — returns the default value when state is null or undefined . useGetSet — returns state getter get() instead of raw state....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fix was merged and released
Done https://github.com/mantinedev/mantine/pull/1212