fix(InputNumber): input-number mouseup (#6772)

* fix(InputNumber): input-number mouseup

* fix: replace  with onClick

---------

Co-authored-by: nbn <nabaonan@yunlizhihui.com>
pull/6817/head
内小子 2023-08-06 12:46:26 +08:00 committed by GitHub
parent e3f09a18a1
commit cacbde3e03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -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>}