Fix drawer overlay click

pull/356/head
Cory LaViska 2021-02-24 07:14:24 -05:00
rodzic b15078030c
commit 4eeeffc493
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -8,7 +8,8 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
## Next
- Fixed bug where `sl-checkbox`, `sl-radio`, and `sl-switch` controls would shrink with long labels [#325](https://github.com/shoelace-style/shoelace/issues/325)
- Fixed a bug where `sl-checkbox`, `sl-radio`, and `sl-switch` controls would shrink with long labels [#325](https://github.com/shoelace-style/shoelace/issues/325)
- Fixed a bug where ignoring clicks and clicking the overlay would prevent the escape key from closing the dialog/drawer [#344](https://github.com/shoelace-style/shoelace/pull/344)
## 2.0.0-beta.27

Wyświetl plik

@ -246,7 +246,7 @@ export class Drawer {
onKeyDown={this.handleKeyDown}
onTransitionEnd={this.handleTransitionEnd}
>
<div part="overlay" class="drawer__overlay" onClick={this.handleOverlayClick} />
<div part="overlay" class="drawer__overlay" onClick={this.handleOverlayClick} tabIndex={-1} />
<div
ref={el => (this.panel = el)}