From 0336cd19720f8eeee04ecd25097e591ed5b01537 Mon Sep 17 00:00:00 2001 From: Youssef Tarek Date: Mon, 20 Sep 2021 02:48:20 +0200 Subject: [PATCH] fixed type for the ref --- src/ref.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ref.ts b/src/ref.ts index 20c6ba5..ad79b55 100644 --- a/src/ref.ts +++ b/src/ref.ts @@ -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