Skip to content

Commit

Permalink
XWIKI-21967: Dragging to resize the columns from Affected Children Li…
Browse files Browse the repository at this point in the history
…ve Data causes the page to be deleted without user's confirmation (#2953)

* Added a type to the dragNdrop buttons to avoid them accidentally submitting a form they were included in.
  • Loading branch information
Sereza7 authored Mar 5, 2024
1 parent d186cd5 commit fbff860
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@
<!-- Wrapper for the column header -->
<div class="column-name">
<!-- Property Name -->
<button
class="handle"
<button type="button" class="handle"
@click="sort(property)"
@keydown.left="keyboardDragNDrop($event, -1)"
@keydown.right="keyboardDragNDrop($event, 1)"
Expand All @@ -83,7 +82,8 @@
<!--
Specify the handle to resize properties
-->
<button class="resize-handle btn btn-xs btn-default" :title="$t('livedata.action.resizeColumn.hint')"
<button type="button" class="resize-handle btn btn-xs btn-default"
:title="$t('livedata.action.resizeColumn.hint')"
v-mousedownmove="mouseResizeColumnInit"
@mousedownmove="mouseResizeColumn"
@keydown.left="keyboardResizeColumn($event, -10)"
Expand Down

0 comments on commit fbff860

Please sign in to comment.