mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
selectFirst 跳过 disabled 的选项 (#1393)
This commit is contained in:
parent
78ec5d8ebc
commit
6ab76fcaa6
@ -385,7 +385,7 @@ export const FormItemStore = StoreNode.named('FormItemStore')
|
||||
}
|
||||
|
||||
for (let option of options) {
|
||||
if (option[self.valueField || 'value']) {
|
||||
if (option[self.valueField || 'value'] && !option.disabled) {
|
||||
return option;
|
||||
} else if (Array.isArray(option.children)) {
|
||||
const childFirst = getFirstAvaibleOption(option.children);
|
||||
|
Loading…
Reference in New Issue
Block a user