Skip to content

Commit

Permalink
Include pointer-events: none
Browse files Browse the repository at this point in the history
  • Loading branch information
joepavitt committed Dec 10, 2024
1 parent 8746318 commit cf43fea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/widgets/ui-switch/UISwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
v-if="!icon" v-model="status"
:disabled="!state.enabled"
:class="{'active': status, 'nrdb-ui-switch-default-cursor': !switchClickable}"
:style="{'pointer-events': switchClickable ? 'inherit' : 'none'}"
hide-details="auto" color="primary"
:loading="loading ? (status === true ? 'secondary' : 'primary') : null"
readonly
Expand All @@ -30,7 +31,7 @@
v-else-if="!loading"
variant="text"
:disabled="!state.enabled"
:style="{cursor: switchClickable ? 'pointer' : 'default'}"
:style="{'pointer-events': switchClickable ? 'inherit' : 'none', cursor: switchClickable ? 'pointer' : 'default'}"
:icon="icon"
:color="color"
@click.stop="switchClickable ? toggle() : null"
Expand Down

0 comments on commit cf43fea

Please sign in to comment.