mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
@@ -21,6 +21,7 @@ Components with the <wa-badge variant="warning">Experimental</wa-badge> badge sh
|
|||||||
- Fixed a bug in `<wa-checkbox>` where its value would revert to `""` when checked / unchecked [pr:1547]
|
- Fixed a bug in `<wa-checkbox>` where its value would revert to `""` when checked / unchecked [pr:1547]
|
||||||
- Fixed a bug that caused icon button labels to not render in frameworks [issue:1542]
|
- Fixed a bug that caused icon button labels to not render in frameworks [issue:1542]
|
||||||
- Fixed a bug in `<wa-details>` that caused the `name` property not to reflect [pr:1538]
|
- Fixed a bug in `<wa-details>` that caused the `name` property not to reflect [pr:1538]
|
||||||
|
- Fixed a bug in `<wa-dialog>` and `<wa-drawer>` that prevented focus from being set on the dialog/drawer when opened [issue:1302]
|
||||||
- Fixed an overflow style that was causing tab group content to be unnecessarily truncated [issue:1401]
|
- Fixed an overflow style that was causing tab group content to be unnecessarily truncated [issue:1401]
|
||||||
- Fixed a bug in `<wa-icon>` that caused icon buttons to render when non-text nodes were slotted in [issue:1475]
|
- Fixed a bug in `<wa-icon>` that caused icon buttons to render when non-text nodes were slotted in [issue:1475]
|
||||||
|
|
||||||
|
|||||||
@@ -197,6 +197,8 @@ export default class WaDialog extends WebAwesomeElement {
|
|||||||
const elementToFocus = this.querySelector<HTMLButtonElement>('[autofocus]');
|
const elementToFocus = this.querySelector<HTMLButtonElement>('[autofocus]');
|
||||||
if (elementToFocus && typeof elementToFocus.focus === 'function') {
|
if (elementToFocus && typeof elementToFocus.focus === 'function') {
|
||||||
elementToFocus.focus();
|
elementToFocus.focus();
|
||||||
|
} else {
|
||||||
|
this.dialog.focus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -210,6 +210,8 @@ export default class WaDrawer extends WebAwesomeElement {
|
|||||||
const elementToFocus = this.querySelector<HTMLButtonElement>('[autofocus]');
|
const elementToFocus = this.querySelector<HTMLButtonElement>('[autofocus]');
|
||||||
if (elementToFocus && typeof elementToFocus.focus === 'function') {
|
if (elementToFocus && typeof elementToFocus.focus === 'function') {
|
||||||
elementToFocus.focus();
|
elementToFocus.focus();
|
||||||
|
} else {
|
||||||
|
this.drawer.focus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user