diff --git a/src/number-keyboard/index.js b/src/number-keyboard/index.js index 93b805067..91168ab19 100644 --- a/src/number-keyboard/index.js +++ b/src/number-keyboard/index.js @@ -223,7 +223,9 @@ export default createComponent({ } ); - useClickAway(root, onClose, { eventName: 'touchstart' }); + if (props.hideOnClickOutside) { + useClickAway(root, onClose, { eventName: 'touchstart' }); + } return () => { const Title = renderTitle();