Commit a3a64afa authored by Tom Quirk's avatar Tom Quirk

Prevent default on toggle_button click events

Fixes bug where, if toggle-icon is clicked,
the toggle does not change value
parent a7caebd8
......@@ -73,7 +73,7 @@ export default {
'is-disabled': disabledInput,
'is-loading': isLoading,
}"
@click="toggleFeature"
@click.prevent="toggleFeature"
>
<gl-loading-icon class="loading-icon" />
<span class="toggle-icon">
......
......@@ -55,6 +55,7 @@
transition: all 0.2s ease;
width: $default-icon-size;
height: $default-icon-size;
// pointer-events: none;
}
.loading-icon {
......
---
title: Improve click surface area of toggle buttons
merge_request: 40231
author:
type: changed
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