Skip to content

Commit

Permalink
fix(ie): take 'backspace' in ie9 textarea, ref #22
Browse files Browse the repository at this point in the history
  • Loading branch information
fritx committed Oct 21, 2017
1 parent b867301 commit 568d625
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/At.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ export default {
}
}
const isChar = e.keyCode >= 48 && e.keyCode <= 90
if (isChar) {
// 为了兼容ie ie9~11 editable无input事件 只能靠keydown触发 textarea正常
// 另 ie9 textarea的delete不触发input
const isValid = e.keyCode >= 48 && e.keyCode <= 90 || e.keyCode === 8
if (isValid) {
setTimeout(() => {
this.handleInput()
}, 50)
Expand Down

0 comments on commit 568d625

Please sign in to comment.