Skip to content

Commit ac15810

Browse files
fix: prevent mouse down event propagation to allow text select
1 parent f5c1148 commit ac15810

File tree

1 file changed

+17
-4
lines changed
  • plugins/dashboards/frontend/public/templates/helpers/widget

1 file changed

+17
-4
lines changed
Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
<div class="bu-is-flex bu-is-flex-shrink-1" style="min-width: 0">
2-
<h4 class="bu-is-flex-shrink-1 has-ellipsis" v-if="title" data-test-id="widget-title">{{unescapeHtml(title)}}</h4>
3-
<clyd-title-labels v-if="labels && labels.length" :labels="labels"></clyd-title-labels>
4-
</div>
1+
<div
2+
class="bu-is-flex bu-is-flex-shrink-1"
3+
style="min-width: 0"
4+
@mousedown.stop
5+
>
6+
<h4
7+
v-if="title"
8+
class="bu-is-flex-shrink-1 has-ellipsis"
9+
data-test-id="widget-title"
10+
>
11+
{{ unescapeHtml(title) }}
12+
</h4>
13+
<clyd-title-labels
14+
v-if="labels && labels.length"
15+
:labels="labels"
16+
/>
17+
</div>

0 commit comments

Comments
 (0)