From 63b354e0f1a1ddab739dd169befab9e497714d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E7=95=85?= <78172670@qq.com> Date: Tue, 1 Dec 2020 16:42:43 +0800 Subject: [PATCH] fix(number-keyboard): fix hide-on-click-outside prop not working (#7668) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #7667 Co-authored-by: 严畅 --- src/number-keyboard/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();