fix(toggle): labelText should not be selectable (#1415)

This adds a `user-select: none` rule to avoid selecting the `Toggle` label text when rapidly clicking it.
This commit is contained in:
metonym 2022-07-26 07:21:19 -07:00 committed by GitHub
commit a3264bd667
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,6 +47,7 @@
<div <div
class:bx--form-item="{true}" class:bx--form-item="{true}"
{...$$restProps} {...$$restProps}
style="{$$restProps['style']}; user-select: none"
on:click on:click
on:mouseover on:mouseover
on:mouseenter on:mouseenter