mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
修复 Picker 无法自动选中的问题 (#2430)
* fix: 修复input-date组件设置minDate确认不生效问题 * 修复picker无法自动选中的问题
This commit is contained in:
parent
ca2069613a
commit
376d6609a8
@ -497,11 +497,11 @@ export default class CRUD extends React.Component<CRUDProps, any> {
|
||||
this.renderFooterToolbar = this.renderFooterToolbar.bind(this);
|
||||
}
|
||||
|
||||
if (this.props.pickerMode && this.props.value !== props.value) {
|
||||
if (this.props.pickerMode && this.props.value !== prevProps.value) {
|
||||
store.setSelectedItems(props.value);
|
||||
}
|
||||
|
||||
if (this.props.filterTogglable !== props.filterTogglable) {
|
||||
if (this.props.filterTogglable !== prevProps.filterTogglable) {
|
||||
store.setFilterTogglable(
|
||||
!!props.filterTogglable,
|
||||
props.filterDefaultVisible
|
||||
|
Loading…
Reference in New Issue
Block a user