Skip to content

Commit

Permalink
fix: properly render value on <progress> in IE/Edge
Browse files Browse the repository at this point in the history
fix #6666
  • Loading branch information
yyx990803 committed Oct 3, 2017
1 parent a5e5b31 commit c64f9ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platforms/web/runtime/modules/attrs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import { isIE9 } from 'core/util/env'
import { isIE9, isEdge } from 'core/util/env'

import {
extend,
Expand Down Expand Up @@ -42,8 +42,9 @@ function updateAttrs (oldVnode: VNodeWithData, vnode: VNodeWithData) {
}
}
// #4391: in IE9, setting type can reset value for input[type=radio]
// #6666: IE/Edge forces progress value down to 1 before setting a max
/* istanbul ignore if */
if (isIE9 && attrs.value !== oldAttrs.value) {
if ((isIE9 || isEdge) && attrs.value !== oldAttrs.value) {
setAttr(elm, 'value', attrs.value)
}
for (key in oldAttrs) {
Expand Down

0 comments on commit c64f9ae

Please sign in to comment.