Commit 3bbdea20 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch '216001-fix-copy-button-hover' into 'master'

Fixes clipboard_button copy tooltip overlapping

See merge request gitlab-org/gitlab!30622
parents 9248354a 48268676
...@@ -17,10 +17,11 @@ function showTooltip(target, title) { ...@@ -17,10 +17,11 @@ function showTooltip(target, title) {
} }
function genericSuccess(e) { function genericSuccess(e) {
showTooltip(e.trigger, __('Copied'));
// Clear the selection and blur the trigger so it loses its border // Clear the selection and blur the trigger so it loses its border
e.clearSelection(); e.clearSelection();
$(e.trigger).blur(); $(e.trigger).blur();
showTooltip(e.trigger, __('Copied'));
} }
/** /**
......
...@@ -67,6 +67,7 @@ export default { ...@@ -67,6 +67,7 @@ export default {
<template> <template>
<gl-deprecated-button <gl-deprecated-button
v-gl-tooltip="{ placement: tooltipPlacement, container: tooltipContainer }" v-gl-tooltip="{ placement: tooltipPlacement, container: tooltipContainer }"
v-gl-tooltip.hover.blur
:class="cssClass" :class="cssClass"
:title="title" :title="title"
:data-clipboard-text="clipboardText" :data-clipboard-text="clipboardText"
......
---
title: Fixes overlapping tooltips when clicking copy buttons
merge_request: 30622
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