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';
|
||||
|
||||
type RecordTableDraggableTrProps = {
|
||||
className?: string;
|
||||
draggableId: DraggableId;
|
||||
draggableIndex: number;
|
||||
isDragDisabled?: boolean;
|
||||
@ -17,7 +18,18 @@ type RecordTableDraggableTrProps = {
|
||||
export const RecordTableDraggableTr = forwardRef<
|
||||
HTMLTableRowElement,
|
||||
RecordTableDraggableTrProps
|
||||
>(({ draggableId, draggableIndex, isDragDisabled, onClick, children }, ref) => {
|
||||
>(
|
||||
(
|
||||
{
|
||||
className,
|
||||
draggableId,
|
||||
draggableIndex,
|
||||
isDragDisabled,
|
||||
onClick,
|
||||
children,
|
||||
},
|
||||
ref,
|
||||
) => {
|
||||
const theme = useTheme();
|
||||
|
||||
return (
|
||||
@ -32,6 +44,7 @@ export const RecordTableDraggableTr = forwardRef<
|
||||
ref,
|
||||
draggableProvided.innerRef,
|
||||
)}
|
||||
className={className}
|
||||
// eslint-disable-next-line react/jsx-props-no-spreading
|
||||
{...draggableProvided.draggableProps}
|
||||
style={{
|
||||
@ -60,4 +73,5 @@ export const RecordTableDraggableTr = forwardRef<
|
||||
)}
|
||||
</Draggable>
|
||||
);
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user