mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
Merge pull request #1131 from 2betop/crud-bugfix
修复 crud keepItemSelectionOnPageChange 无效的问题
This commit is contained in:
commit
0c76127f4a
@ -1322,7 +1322,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
|
||||
// newUnSelectedItems.push(...unSelectedItems);
|
||||
}
|
||||
|
||||
if (pickerMode && !multiple && newItems.length > 1) {
|
||||
if (pickerMode && multiple !== false && newItems.length > 1) {
|
||||
newUnSelectedItems.push(...newItems.splice(0, newItems.length - 1));
|
||||
}
|
||||
|
||||
@ -1969,7 +1969,7 @@ export default class CRUD extends React.Component<CRUDProps, any> {
|
||||
)
|
||||
: null}
|
||||
|
||||
{keepItemSelectionOnPageChange && multiple
|
||||
{keepItemSelectionOnPageChange && multiple !== false
|
||||
? this.renderSelection()
|
||||
: null}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user