mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
fix: 修复 select 同时配置 source 和 options 时,页面切换选项有可能被重置为 options 而不是 source 加载部分 (#9194)
This commit is contained in:
parent
0dcfb1d637
commit
a72f1530c5
@ -425,7 +425,7 @@ export function registerOptionsControl(config: OptionsConfig) {
|
||||
const props = this.props;
|
||||
const formItem = props.formItem as IFormItemStore;
|
||||
|
||||
if (prevProps.options !== props.options && formItem) {
|
||||
if (!props.source && prevProps.options !== props.options && formItem) {
|
||||
formItem.setOptions(
|
||||
normalizeOptions(props.options || [], undefined, props.valueField),
|
||||
this.changeOptionValue,
|
||||
|
Loading…
Reference in New Issue
Block a user