Skip to content

Commit 2c559ea

Browse files
committed
fix: tabs disabled not work #3366
1 parent 1896bb9 commit 2c559ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/_util/util.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ function resolvePropValue(options, props, key, value) {
4242
value = opt.type !== Function && isFunction(defaultValue) ? defaultValue() : defaultValue;
4343
}
4444
// boolean casting
45-
if (opt[0 /* shouldCast */]) {
45+
if (opt.type === Boolean) {
4646
if (!hasOwn(props, key) && !hasDefault) {
4747
value = false;
48-
} else if (opt[1 /* shouldCastTrue */] && (value === '' || value === hyphenate(key))) {
48+
} else if (value === '') {
4949
value = true;
5050
}
5151
}

0 commit comments

Comments
 (0)