Commit 670737d1 authored by Phil Hughes's avatar Phil Hughes

Fix merge request widget extension expand click listener bug

Closes https://gitlab.com/gitlab-org/gitlab/-/issues/355044
parent 435ea6c8
......@@ -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