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