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 ced00b1 commit 1f81cfaCopy full SHA for 1f81cfa
src/core/util/props.js
@@ -31,7 +31,10 @@ export function validateProp (
31
if (isType(Boolean, prop.type)) {
32
if (absent && !hasOwn(prop, 'default')) {
33
value = false
34
- } else if (!isType(String, prop.type) && (value === '' || value === hyphenate(key))) {
+ } else if (
35
+ (!isType(String, prop.type) || prop.type.indexOf(String) > prop.type.indexOf(Boolean) &&
36
+ (value === '' || value === hyphenate(key))
37
+ ) {
38
value = true
39
}
40
0 commit comments