Commit bd02ae95 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'ph/355044/extensionExpandButton' into 'master'

Fix merge request widget extension expand click listener bug

See merge request gitlab-org/gitlab!83114
parents 9798b19e 670737d1
......@@ -214,7 +214,7 @@ export default {
// To allow for text to be selected we check if the the user is clicking
// or selecting, if they are selecting the time difference should be
// more than 200ms
if (up - this.down < 200) {
if (up - this.down < 200 && !e?.target?.closest('.btn-icon')) {
this.toggleCollapsed(e);
}
},
......@@ -264,7 +264,7 @@ export default {
category="tertiary"
data-testid="toggle-button"
size="small"
@click.self="toggleCollapsed"
@click="toggleCollapsed"
/>
</div>
</div>
......
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