Skip to content

Commit 2e8094c

Browse files
MacMcIrishÁlvaro Medina Ballester
authored andcommitted
fix: added default initializer for user options (#343)
1 parent 8c3d10d commit 2e8094c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/KeyboardAwareHOC.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const ScrollIntoViewDefaultOptions: KeyboardAwareHOCOptions = {
137137

138138
function KeyboardAwareHOC(
139139
ScrollableComponent: React$Component,
140-
userOptions: KeyboardAwareHOCOptions
140+
userOptions: KeyboardAwareHOCOptions = {}
141141
) {
142142
const hocOptions: KeyboardAwareHOCOptions = {
143143
...ScrollIntoViewDefaultOptions,

0 commit comments

Comments
 (0)