From d7de45cd29d7c5138825dfeb9626c5c7c3aa3393 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Wed, 2 Dec 2020 12:14:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20crud=20keepItemSelectionOn?= =?UTF-8?q?PageChange=20=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/CRUD.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderers/CRUD.tsx b/src/renderers/CRUD.tsx index a7100c747..a4cc58892 100644 --- a/src/renderers/CRUD.tsx +++ b/src/renderers/CRUD.tsx @@ -1322,7 +1322,7 @@ export default class CRUD extends React.Component { // 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 { ) : null} - {keepItemSelectionOnPageChange && multiple + {keepItemSelectionOnPageChange && multiple !== false ? this.renderSelection() : null}