Prevent mouse events from bubbling up in buttons

This commit is contained in:
Cory LaViska
2020-09-08 08:27:07 -04:00
parent 4bf67c839a
commit 6a731ca015
2 changed files with 6 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
## Next
- Added `input`, `label`, `prefix`, `clear-button`, `suffix`, `help-text` exported parts to `sl-select` to make the input customizable
- Fixed bug where mouse events would bubble up when `sl-button` was disabled, causing tooltips to erroneously appear
## 2.0.0-beta.18

View File

@@ -34,6 +34,11 @@
&[disabled] {
opacity: 0.5;
cursor: not-allowed;
// When disabled, prevent mouse events from bubbling up
* {
pointer-events: none;
}
}
// Clicks on icons shouldn't prevent the button from gaining focus