Commit 8a7baa28 authored by jboyson's avatar jboyson

Replace button with div

Due to a bug in Firefox buttons are not draggable:
https://bugzilla.mozilla.org/show_bug.cgi?id=568313

This changes the button to a div and uses "role" to keep
the semantics for ARIA
parent 56ecf54e
......@@ -215,7 +215,8 @@ export default {
class="add-diff-note tooltip-wrapper"
:title="addCommentTooltipLeft"
>
<button
<div
role="button"
:draggable="glFeatures.dragCommentSelection"
type="button"
class="add-diff-note unified-diff-components-diff-note-button note-button js-add-diff-note-button qa-diff-comment"
......@@ -224,7 +225,7 @@ export default {
:disabled="line.left.commentsDisabled"
@click="handleCommentButton(line.left)"
@dragstart="onDragStart({ ...line.left, index })"
></button>
></div>
</span>
</template>
<a
......
---
title: Fix multiline comment dragging in Firefox
merge_request: 58692
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment