Skip to content

Commit

Permalink
fix(InputNumber): input-number mouseup (#6772)
Browse files Browse the repository at this point in the history
* fix(InputNumber): input-number mouseup

* fix: replace  with onClick

---------

Co-authored-by: nbn <nabaonan@yunlizhihui.com>
  • Loading branch information
nabaonan and nbn authored Aug 6, 2023
1 parent e3f09a1 commit cacbde3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/input-number/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,7 @@ const InputNumber = defineComponent({
hashId.value,
);
element = (
<div
class={affixWrapperCls}
style={style}
onMouseup={() => inputNumberRef.value!.focus()}
>
<div class={affixWrapperCls} style={style} onClick={focus}>
{hasPrefix && <span class={`${preCls}-prefix`}>{prefix}</span>}
{element}
{hasFeedback && <span class={`${preCls}-suffix`}>{feedbackIcon}</span>}
Expand Down

0 comments on commit cacbde3

Please sign in to comment.