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) {
}
function genericSuccess(e) {
showTooltip(e.trigger, __('Copied'));
// Clear the selection and blur the trigger so it loses its border
e.clearSelection();
$(e.trigger).blur();
showTooltip(e.trigger, __('Copied'));
}
/**
......
......@@ -67,6 +67,7 @@ export default {
<template>
<gl-deprecated-button
v-gl-tooltip="{ placement: tooltipPlacement, container: tooltipContainer }"
v-gl-tooltip.hover.blur
:class="cssClass"
:title="title"
: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