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
  • Loading branch information
Wesley-0808 committed Oct 27, 2024
1 parent 9cfc7f9 commit 35efc9d
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 35efc9d

Please sign in to comment.