We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e46d537 commit 12fcfa1Copy full SHA for 12fcfa1
components/input-number/src/InputNumber.tsx
@@ -395,6 +395,11 @@ export default defineComponent({
395
}
396
};
397
398
+ // Solve the issue of the event triggering sequence when entering numbers in chinese input (Safari)
399
+ const onBeforeInput = () => {
400
+ userTypingRef.value = true;
401
+ };
402
+
403
const onKeyDown: KeyboardEventHandler = event => {
404
const { which } = event;
405
userTypingRef.value = true;
@@ -577,6 +582,7 @@ export default defineComponent({
577
582
onBlur={onBlur}
578
583
onCompositionstart={onCompositionStart}
579
584
onCompositionend={onCompositionEnd}
585
+ onBeforeinput={onBeforeInput}
580
586
/>
581
587
</div>
588
0 commit comments