mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
fix(number-keyboard): fix hide-on-click-outside prop not working (#7668)
fix #7667 Co-authored-by: 严畅 <yanchang@segimail.com>
This commit is contained in:
parent
bf6e0beb02
commit
63b354e0f1
@ -223,7 +223,9 @@ export default createComponent({
|
||||
}
|
||||
);
|
||||
|
||||
useClickAway(root, onClose, { eventName: 'touchstart' });
|
||||
if (props.hideOnClickOutside) {
|
||||
useClickAway(root, onClose, { eventName: 'touchstart' });
|
||||
}
|
||||
|
||||
return () => {
|
||||
const Title = renderTitle();
|
||||
|
Loading…
x
Reference in New Issue
Block a user