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
  • Loading branch information
yyx990803 authored and hefeng committed Jan 25, 2019
1 parent 6415295 commit 32f8297
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 32f8297

Please sign in to comment.