[GH-278] Prevent dragging of gallery cards in read-only mode (#293)
Fixes: #278
This commit is contained in:
parent
9932cf16d8
commit
6fcafcebbb
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ type Props = {
|
|||
|
||||
const GalleryCard = React.memo((props: Props) => {
|
||||
const {cardTree} = props
|
||||
const [isDragging, isOver, cardRef] = useSortable('card', cardTree.card, props.isManualSort, props.onDrop)
|
||||
const [isDragging, isOver, cardRef] = useSortable('card', cardTree.card, props.isManualSort && !props.readonly, props.onDrop)
|
||||
|
||||
const visiblePropertyTemplates = props.visiblePropertyTemplates || []
|
||||
|
||||
|
|
Loading…
Reference in a new issue