Fix initial display value for new items #77458
This commit is contained in:
parent
3d95e7271b
commit
47bccfa1c8
1 changed files with 2 additions and 1 deletions
|
@ -598,7 +598,8 @@ export class ListSettingWidget extends AbstractListSettingWidget<IListDataItem>
|
|||
valueInput = this.renderDropdown(item.value, rowElement);
|
||||
currentEnumOptions = item.value.options;
|
||||
if (item.value.options.length) {
|
||||
currentDisplayValue = item.value.data;
|
||||
currentDisplayValue = this.isItemNew(item) ?
|
||||
currentEnumOptions[0].value : item.value.data;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue