Просмотр исходного кода

fix: set value as domProp for <progress>

fix #6561
Evan You 8 лет назад
Родитель
Сommit
7116af4e07
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/platforms/web/util/attrs.js

+ 1 - 1
src/platforms/web/util/attrs.js

@@ -7,7 +7,7 @@ import { makeMap } from 'shared/util'
 export const isReservedAttr = makeMap('style,class')
 export const isReservedAttr = makeMap('style,class')
 
 
 // attributes that should be using props for binding
 // attributes that should be using props for binding
-const acceptValue = makeMap('input,textarea,option,select')
+const acceptValue = makeMap('input,textarea,option,select,progress')
 export const mustUseProp = (tag: string, type: ?string, attr: string): boolean => {
 export const mustUseProp = (tag: string, type: ?string, attr: string): boolean => {
   return (
   return (
     (attr === 'value' && acceptValue(tag)) && type !== 'button' ||
     (attr === 'value' && acceptValue(tag)) && type !== 'button' ||