ericrsmith35 / DatatableV2

28 stars 24 forks source link

don't show radio button when tableData.length is 1 #73

Closed steot closed 3 years ago

steot commented 3 years ago

When the table only contains a single row (tableData.length === 1), maxRowSelection is set to 1 and the row checkbox becomes a radio button, which cannot be deselected by the user.

This should not happen and radio buttons should only replace checkboxes when the option "Single Row Selection (Radio Buttons)?" (singleRowSelection) is activated explicitly.

ericrsmith35 commented 3 years ago

Thank you very much, but this has been addressed in the current (V3) version of the Datatable component. https://github.com/alexed1/LightningFlowComponents/tree/master/flow_screen_components/datatable