pull/7981/merge
Hitsuki9 2025-03-10 09:01:03 +08:00 committed by GitHub
commit 6d74846992
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ export default defineComponent({
props: baseInputProps(),
setup(props, { slots, attrs }) {
const containerRef = ref();
const onInputMouseDown: MouseEventHandler = e => {
const onInputClick: MouseEventHandler = e => {
if (containerRef.value?.contains(e.target as Element)) {
const { triggerFocus } = props;
triggerFocus?.();
@ -104,7 +104,7 @@ export default defineComponent({
class={affixWrapperCls}
style={attrs.style as CSSProperties}
hidden={!hasAddon({ addonAfter, addonBefore }) && hidden}
onMousedown={onInputMouseDown}
onClick={onInputClick}
ref={containerRef}
>
{prefix && <span class={`${prefixCls}-prefix`}>{prefix}</span>}