Skip to content

Commit

Permalink
fix(input): input AutoWidth the width(PreValue) does not respond when…
Browse files Browse the repository at this point in the history
… use Chinese input method (#4688)
  • Loading branch information
Wesley-0808 authored Oct 29, 2024
1 parent f66dbf5 commit d1879d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export default defineComponent({
/>
{props.autoWidth && (
<span ref={inputPreRef} class={`${classPrefix.value}-input__input-pre`}>
{innerValue.value || tPlaceholder.value}
{isComposition.value ? compositionValue.value ?? '' : innerValue.value || tPlaceholder.value}
</span>
)}
{suffixContent}
Expand Down

0 comments on commit d1879d3

Please sign in to comment.