Commit 724e4858 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch 'mrincon-help_popover-removal-fix' into 'master'

Fix console warning after popover removal

See merge request gitlab-org/gitlab!84261
parents 9abeb2bf 351082d9
......@@ -21,12 +21,17 @@ export default {
default: () => ({}),
},
},
methods: {
targetFn() {
return this.$refs.popoverTrigger?.$el;
},
},
};
</script>
<template>
<span>
<gl-button ref="popoverTrigger" variant="link" icon="question-o" :aria-label="__('Help')" />
<gl-popover :target="() => $refs.popoverTrigger.$el" v-bind="options">
<gl-popover :target="targetFn" v-bind="options">
<template v-if="options.title" #title>
<span v-safe-html="options.title"></span>
</template>
......
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