Skip to content

Commit

Permalink
fix: numberkeyboard 设置标题后,完成按钮应该触发 onConfirm 事件 (#1285)
Browse files Browse the repository at this point in the history
* docs: numberkeyboard 的 type 属性类型更新

* fix: numberkeyboard 设置标题后,完成按钮应该触发 onConfirm 事件
  • Loading branch information
oasis-cloud authored Aug 8, 2023
1 parent 0092542 commit b5e673b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/packages/numberkeyboard/numberkeyboard.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export const NumberKeyboard: FunctionComponent<
{type === 'default' && (
<span
className={`${classPrefix}__header__close`}
onClick={onClose}
onClick={onConfirm}
>
{locale.done}
</span>
Expand Down
2 changes: 1 addition & 1 deletion src/packages/numberkeyboard/numberkeyboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const NumberKeyboard: FunctionComponent<
{type === 'default' && (
<span
className={`${classPrefix}__header__close`}
onClick={onClose}
onClick={onConfirm}
>
{locale.done}
</span>
Expand Down

0 comments on commit b5e673b

Please sign in to comment.