Skip to content

Commit

Permalink
Merge pull request #581 from useryuyu/issue_580
Browse files Browse the repository at this point in the history
feature(input):避免在中文拼音输入时显示中间状态 #580
  • Loading branch information
ielgnaw authored Sep 20, 2024
2 parents 3e59ab9 + 1b91907 commit 2e52a22
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/input/input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -792,12 +792,11 @@ export default {
this.isOnComposition = true
},
handlerCompositionend (e) {
// this.isOnComposition = false
if (this.inputType === 'number' && this.isOnComposition) {
e.target.value = this.curValue
this.isOnComposition = false
this.handlerInput(e)
e.target.value = this.curValue;
}
this.isOnComposition = false;
this.handlerInput(e);
},
handlerInput (event) {
// if (this.isOnComposition) {
Expand Down

0 comments on commit 2e52a22

Please sign in to comment.