mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
c4dadd58bd
commit
cee4794cd3
64 changed files with 1378 additions and 297 deletions
|
@ -52,7 +52,7 @@ Custom property | Description | Default
|
|||
### Accessibility
|
||||
|
||||
This element has `role="dialog"` by default. Depending on the context, it may be more appropriate
|
||||
to override this attribute with `role="alertdialog"`. The header (a `<h2>` element) will
|
||||
to override this attribute with `role="alertdialog"`.
|
||||
|
||||
If `modal` is set, the element will set `aria-modal` and prevent the focus from exiting the element.
|
||||
It will also ensure that focus remains in the dialog.
|
||||
|
@ -173,15 +173,17 @@ The `aria-labelledby` attribute will be set to the header element, if one exists
|
|||
|
||||
_onDialogClick: function(event) {
|
||||
var target = event.target;
|
||||
while (target !== this) {
|
||||
if (target.hasAttribute('dialog-dismiss')) {
|
||||
this._updateClosingReasonConfirmed(false);
|
||||
this.close();
|
||||
break;
|
||||
} else if (target.hasAttribute('dialog-confirm')) {
|
||||
this._updateClosingReasonConfirmed(true);
|
||||
this.close();
|
||||
break;
|
||||
while (target && target !== this) {
|
||||
if (target.hasAttribute) {
|
||||
if (target.hasAttribute('dialog-dismiss')) {
|
||||
this._updateClosingReasonConfirmed(false);
|
||||
this.close();
|
||||
break;
|
||||
} else if (target.hasAttribute('dialog-confirm')) {
|
||||
this._updateClosingReasonConfirmed(true);
|
||||
this.close();
|
||||
break;
|
||||
}
|
||||
}
|
||||
target = target.parentNode;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue