fix v-model on input[type=range] in IE (fix #3439)

This commit is contained in:
Evan You 2016-08-14 18:58:30 -04:00
parent 854ccce5d5
commit 174e936e2a
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
/* @flow */
import { isIE } from 'web/util/index'
import { addHandler, addProp, getBindingAttr } from 'compiler/helpers'
let warn
@ -96,7 +97,7 @@ function genDefaultModel (
const type = el.attrsMap.type
const { lazy, number, trim } = modifiers || {}
const event = lazy ? 'change' : 'input'
const event = lazy || (isIE && type === 'range') ? 'change' : 'input'
const needCompositionGuard = !lazy && type !== 'range'
const isNative = el.tag === 'input' || el.tag === 'textarea'