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:
@@ -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)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user