mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
fix: disabled option are not selectable, close: #4699
This commit is contained in:
parent
200b88246f
commit
1f223d8e4c
@ -25,6 +25,10 @@ const options = [{
|
||||
children: [{
|
||||
value: 'xihu',
|
||||
label: 'West Lake',
|
||||
}, {
|
||||
value: 'xiasha',
|
||||
label: 'Xia Sha',
|
||||
disabled: true,
|
||||
}],
|
||||
}],
|
||||
}, {
|
||||
|
@ -239,6 +239,7 @@ export default class Cascader extends React.Component<CascaderProps, any> {
|
||||
path,
|
||||
label: render(inputValue, path, prefixCls),
|
||||
value: path.map(o => o.value),
|
||||
disabled: path.some(o => o.disabled),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user