fix: view group wrong cursor (#9119)
Wrong cursor was shown on `Load more` and `Add new` row in view group mode
This commit is contained in:
@ -7,6 +7,7 @@ import { RecordTableTr } from '@/object-record/record-table/record-table-row/com
|
|||||||
import { combineRefs } from '~/utils/combineRefs';
|
import { combineRefs } from '~/utils/combineRefs';
|
||||||
|
|
||||||
type RecordTableDraggableTrProps = {
|
type RecordTableDraggableTrProps = {
|
||||||
|
className?: string;
|
||||||
draggableId: DraggableId;
|
draggableId: DraggableId;
|
||||||
draggableIndex: number;
|
draggableIndex: number;
|
||||||
isDragDisabled?: boolean;
|
isDragDisabled?: boolean;
|
||||||
@ -17,7 +18,18 @@ type RecordTableDraggableTrProps = {
|
|||||||
export const RecordTableDraggableTr = forwardRef<
|
export const RecordTableDraggableTr = forwardRef<
|
||||||
HTMLTableRowElement,
|
HTMLTableRowElement,
|
||||||
RecordTableDraggableTrProps
|
RecordTableDraggableTrProps
|
||||||
>(({ draggableId, draggableIndex, isDragDisabled, onClick, children }, ref) => {
|
>(
|
||||||
|
(
|
||||||
|
{
|
||||||
|
className,
|
||||||
|
draggableId,
|
||||||
|
draggableIndex,
|
||||||
|
isDragDisabled,
|
||||||
|
onClick,
|
||||||
|
children,
|
||||||
|
},
|
||||||
|
ref,
|
||||||
|
) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -32,6 +44,7 @@ export const RecordTableDraggableTr = forwardRef<
|
|||||||
ref,
|
ref,
|
||||||
draggableProvided.innerRef,
|
draggableProvided.innerRef,
|
||||||
)}
|
)}
|
||||||
|
className={className}
|
||||||
// eslint-disable-next-line react/jsx-props-no-spreading
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
||||||
{...draggableProvided.draggableProps}
|
{...draggableProvided.draggableProps}
|
||||||
style={{
|
style={{
|
||||||
@ -60,4 +73,5 @@ export const RecordTableDraggableTr = forwardRef<
|
|||||||
)}
|
)}
|
||||||
</Draggable>
|
</Draggable>
|
||||||
);
|
);
|
||||||
});
|
},
|
||||||
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user