Fix bug and optimzed code

This commit is contained in:
2023-11-06 11:27:29 +07:00
parent 96d1e6038c
commit 7bfc2bcfa4
32 changed files with 285 additions and 224 deletions
@@ -11,7 +11,7 @@ import { Nullable } from '../types/common';
*/
export const useOutsideClick = (
handler: () => void,
listeningCapturing = true,
listeningCapturing = true
): MutableRefObject<Nullable<HTMLUListElement>> => {
const ref = useRef<HTMLUListElement>(null);