File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ type UseClickAwayOptions = {
1616export function useClickAway (
1717 container : RefObject < HTMLElement | undefined > ,
1818 callback : ( e : Event ) => void ,
19- { enabled = true } : UseClickAwayOptions
19+ { enabled = true } : UseClickAwayOptions = { }
2020) {
2121 useEffect ( ( ) => {
2222 if ( ! enabled ) {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ type UseFocusAwayOptions = {
1919export function useFocusAway (
2020 container : RefObject < HTMLElement | undefined > ,
2121 callback : ( e : FocusEvent ) => void ,
22- { enabled = true } : UseFocusAwayOptions
22+ { enabled = true } : UseFocusAwayOptions = { }
2323) {
2424 useEffect ( ( ) => {
2525 if ( ! enabled ) {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ type UseKeyPressOptions = {
1616export function useKeyPress (
1717 keys : string [ ] ,
1818 callback : ( e : KeyboardEvent ) => void ,
19- { enabled = true } : UseKeyPressOptions
19+ { enabled = true } : UseKeyPressOptions = { }
2020) {
2121 useEffect ( ( ) => {
2222 if ( ! enabled ) {
You can’t perform that action at this time.
0 commit comments