diff --git a/scripts/server/tpls/demo.ejs b/scripts/server/tpls/demo.ejs index 4b2c097602..7aed26f38b 100644 --- a/scripts/server/tpls/demo.ejs +++ b/scripts/server/tpls/demo.ejs @@ -40,8 +40,8 @@ } - - + + - - + + diff --git a/src/table/selection.jsx b/src/table/selection.jsx index 8b52712eff..e4d0016108 100644 --- a/src/table/selection.jsx +++ b/src/table/selection.jsx @@ -173,21 +173,20 @@ export default function selection(BaseComponent) { if (checked) { indeterminate = false; } - return ( - - {mode === 'multiple' ? ( - - ) : null} - {rowSelection.titleAddons && rowSelection.titleAddons()} - - ); + return [ + mode === 'multiple' ? ( + + ) : null, + rowSelection.titleAddons && rowSelection.titleAddons(), + ]; }; renderSelectionBody = (value, index, record) => {