Skip to content

Commit

Permalink
fix: type input don't change the value (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxiong10 committed Mar 14, 2019
1 parent 06fd776 commit aa20a1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,9 @@ export default {
const keyCode = event.keyCode
// Tab 9 or Enter 13
if (keyCode === 9 || keyCode === 13) {
// ie emit the watch before the change event
this.handleChange()
this.userInput = null
this.popupVisible = false
event.stopPropagation()
}
Expand All @@ -543,8 +546,8 @@ export default {
this.userInput = event.target.value
},
handleChange () {
const value = this.text
if (this.editable && this.userInput !== null) {
const value = this.text
const checkDate = this.$refs.calendarPanel.isDisabledTime
if (!value) {
this.clearDate()
Expand Down

0 comments on commit aa20a1e

Please sign in to comment.