Prechádzať zdrojové kódy

fix: set value as domProp for <progress>

fix #6561
Evan You 8 rokov pred
rodič
commit
7116af4e07
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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')
 
 // 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 => {
   return (
     (attr === 'value' && acceptValue(tag)) && type !== 'button' ||