grep-components 2.12.0-GREPF-2676.1 → 2.12.0-GREPF-2676.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11024,7 +11024,8 @@ function SortableTableRow({ item, id, index, render, disabled, }) {
|
|
|
11024
11024
|
const renderRow = useCallback$1((isDragging) => cells.map(({ value, properties }, index) => (React__default.createElement(SortableTableCell, { key: `dragable-${id}-${index}`, locked: isDragging, ...properties }, value))), [cells, id]);
|
|
11025
11025
|
return (React__default.createElement(PublicDraggable, { draggableId: `dragable-${id}`, index: index, isDragDisabled: disabled }, (provided, { isDragging }) => {
|
|
11026
11026
|
const { classes } = useStyles$4({ isDragging: isDragging });
|
|
11027
|
-
return (React__default.createElement(TableRow, { className: classes.row, ref: provided.innerRef, ...provided.draggableProps
|
|
11027
|
+
return (React__default.createElement(TableRow, { className: classes.row, ref: provided.innerRef, ...provided.draggableProps, ...provided.dragHandleProps, role: "row" // defined specifically to override this prop from provided.draghandleProps
|
|
11028
|
+
, tabIndex: undefined },
|
|
11028
11029
|
React__default.createElement(TableCell, { style: { width: '45px', padding: '5px 10px' }, ...provided.dragHandleProps },
|
|
11029
11030
|
React__default.createElement(DragIndicator, null)),
|
|
11030
11031
|
renderRow(isDragging)));
|