Skip to content

Commit

Permalink
fixed type for the ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ylkhayat committed Sep 20, 2021
1 parent dbc82de commit 0336cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const reset = () => {
* Gracefully `blur` the focused node via the `onBlur` method specified in the `Controller` props if it can be `blur`red.
* @param force {boolean} flag to indicate whether to force removing the focused component logically or not.
*/
const blur = (force: boolean) => {
const blur = (force?: boolean) => {
const focusedComponent = getFocused()
if (!focusedComponent) return
const { node, onBlur } = focusedComponent
Expand Down

0 comments on commit 0336cd1

Please sign in to comment.