We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8f4139 commit 1cf377fCopy full SHA for 1cf377f
src/platforms/web/util/attrs.js
@@ -3,9 +3,10 @@
3
import { makeMap } from 'shared/util'
4
5
// attributes that should be using props for binding
6
+const acceptValue = makeMap('input,textarea,option,select')
7
export const mustUseProp = (tag: string, attr: string): boolean => {
8
return (
- (attr === 'value' && (tag === 'input' || tag === 'textarea' || tag === 'option')) ||
9
+ (attr === 'value' && acceptValue(tag)) ||
10
(attr === 'selected' && tag === 'option') ||
11
(attr === 'checked' && tag === 'input') ||
12
(attr === 'muted' && tag === 'video')
0 commit comments