docs: fixes to navbar and sidebar in mobile (#12379)

* docs: fixes to navbar and sidebar in mobile

* fix height issues
This commit is contained in:
Shahed Nasser
2025-05-06 19:11:15 +03:00
committed by GitHub
parent 91173f3052
commit 74e93b3079
4 changed files with 16 additions and 14 deletions
@@ -16,7 +16,8 @@ export const useClickOutside = ({
const checkClickOutside = useCallback(
(e: MouseEvent) => {
if (!elmRef.current?.contains(e.target as Node)) {
const node = e.target as Node
if (!elmRef.current?.contains(node) && node.isConnected) {
onClickOutside(e)
}
},