kopia lustrzana https://github.com/shoelace-style/shoelace
Prevent mouse events from bubbling up in buttons
rodzic
4bf67c839a
commit
6a731ca015
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue