Update useDismissable.ts (#1)
Andy Richardson 3 years ago aafbbe12 6b1b2d0d
··· 80 80 document.removeEventListener('touchstart', onClick); 81 81 document.removeEventListener('keydown', onKey); 82 82 }; 83 83 - }, [ref, hasPriority, disabled, focusLoss]); 83 83 + }, [ref.current, hasPriority, disabled, focusLoss]); 84 84 }