reflect disabled in dropdown

pull/749/head
Cory LaViska 2022-05-02 16:33:30 -04:00
rodzic 92b735b7fa
commit 4a0f6ef8af
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -13,6 +13,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
- Fixed a bug where updating a menu item's label wouldn't update the display label in `<sl-select>` [#729](https://github.com/shoelace-style/shoelace/issues/729)
- Improved performance of `<sl-select>` by caching menu items instead of traversing for them each time
- Revert form submit logic [#718](https://github.com/shoelace-style/shoelace/issues/718)
- Updated the `disabled` attribute so it reflects in `<sl-dropdown>` [#741](https://github.com/shoelace-style/shoelace/discussions/741)
- Updated the `name` and `icon` attribute so they reflect in `<sl-icon>` [#742](https://github.com/shoelace-style/shoelace/pull/742)
## 2.0.0-beta.73

Wyświetl plik

@ -65,7 +65,7 @@ export default class SlDropdown extends LitElement {
| 'left-end' = 'bottom-start';
/** Disables the dropdown so the panel will not open. */
@property({ type: Boolean }) disabled = false;
@property({ type: Boolean, reflect: true }) disabled = false;
/**
* By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for