Skip to content

Commit

Permalink
Force automatic handle column unclickable for row click action
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Nov 7, 2024
1 parent 92513fc commit a1d6035
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Core/Grid/Presenter/GridPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ protected function getColumns(GridInterface $grid)
'id' => $positionColumn->getId() . '_handle',
'name' => $positionColumn->getName(),
'type' => 'position_handle',
'options' => $positionColumn->getOptions(),
'options' => [
// We force the handle not to be clickable, or it would mess with the drag and drop behavior
'clickable' => false,
] + $positionColumn->getOptions(),
]);
}
}
Expand Down

0 comments on commit a1d6035

Please sign in to comment.