From 877a970935a88a7c8570827239446d876f649055 Mon Sep 17 00:00:00 2001 From: dlajarretie Date: Tue, 11 Jan 2022 18:37:19 +0100 Subject: [PATCH] Remove default value for param of async function --- lib/KeyboardAwareHOC.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/KeyboardAwareHOC.js b/lib/KeyboardAwareHOC.js index 03f46af..20530bc 100644 --- a/lib/KeyboardAwareHOC.js +++ b/lib/KeyboardAwareHOC.js @@ -334,8 +334,9 @@ function KeyboardAwareHOC( scrollIntoView = async ( element: React.Element<*>, - options: ScrollIntoViewOptions = {} + options: ScrollIntoViewOptions ) => { + options = options || {} if (!this._rnkasv_keyboardView || !element) { return }