Skip to content

Commit 36802ea

Browse files
committed
main - 75713b0 fix(material/paginator): prevent keyboard nav to disabled buttons (#30627)
1 parent 399ab24 commit 36802ea

16 files changed

+27
-23
lines changed

button/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { M as MAT_BUTTON_CONFIG, f as MAT_FAB_DEFAULT_OPTIONS, g as MAT_FAB_DEFAULT_OPTIONS_FACTORY, d as MatAnchor, c as MatButton, a as MatButtonAppearance, b as MatButtonConfig, n as MatButtonModule, j as MatFabAnchor, h as MatFabButton, e as MatFabDefaultOptions, m as MatIconAnchor, l as MatIconButton, k as MatMiniFabAnchor, i as MatMiniFabButton } from '../module.d-6654cd30.js';
1+
export { M as MAT_BUTTON_CONFIG, f as MAT_FAB_DEFAULT_OPTIONS, g as MAT_FAB_DEFAULT_OPTIONS_FACTORY, d as MatAnchor, c as MatButton, a as MatButtonAppearance, b as MatButtonConfig, n as MatButtonModule, j as MatFabAnchor, h as MatFabButton, e as MatFabDefaultOptions, m as MatIconAnchor, l as MatIconButton, k as MatMiniFabAnchor, i as MatMiniFabButton } from '../module.d-d5187787.js';
22
import '@angular/core';
33
import '../common-module.d-0e6515ae.js';
44
import '@angular/cdk/bidi';

datepicker/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as i0 from '@angular/core';
22
import { OnChanges, OnDestroy, AfterViewChecked, EventEmitter, SimpleChanges, FactoryProvider, AfterContentInit, ChangeDetectorRef, AfterViewInit, ElementRef, InjectionToken, OnInit, DoCheck, TemplateRef } from '@angular/core';
3-
import { c as MatButton, n as MatButtonModule } from '../module.d-6654cd30.js';
3+
import { c as MatButton, n as MatButtonModule } from '../module.d-d5187787.js';
44
import * as i2 from '@angular/cdk/overlay';
55
import { ScrollStrategy, Overlay } from '@angular/cdk/overlay';
66
import * as i1 from '@angular/cdk/a11y';

fesm2022/button.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export { M as MAT_BUTTON_CONFIG, b as MatIconAnchor, a as MatIconButton } from './icon-button-a0d49271.mjs';
2-
export { b as MAT_FAB_DEFAULT_OPTIONS, c as MAT_FAB_DEFAULT_OPTIONS_FACTORY, a as MatAnchor, M as MatButton, h as MatButtonModule, f as MatFabAnchor, d as MatFabButton, g as MatMiniFabAnchor, e as MatMiniFabButton } from './module-ba62ff4b.mjs';
1+
export { M as MAT_BUTTON_CONFIG, b as MatIconAnchor, a as MatIconButton } from './icon-button-2ad3ee9f.mjs';
2+
export { b as MAT_FAB_DEFAULT_OPTIONS, c as MAT_FAB_DEFAULT_OPTIONS_FACTORY, a as MatAnchor, M as MatButton, h as MatButtonModule, f as MatFabAnchor, d as MatFabButton, g as MatMiniFabAnchor, e as MatMiniFabButton } from './module-bd90ef77.mjs';
33
import '@angular/core';
44
import '@angular/cdk/a11y';
55
import '@angular/cdk/private';

fesm2022/datepicker.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import { startWith, take, filter } from 'rxjs/operators';
1515
import { _CdkPrivateStyleLoader, _VisuallyHiddenLoader } from '@angular/cdk/private';
1616
import { _ as _StructuralStylesLoader } from './structural-styles-d5ada3b3.mjs';
1717
import { a as MAT_DATE_FORMATS, D as DateAdapter$1 } from './date-formats-b618acb8.mjs';
18-
import { M as MatButton, h as MatButtonModule } from './module-ba62ff4b.mjs';
19-
import { a as MatIconButton } from './icon-button-a0d49271.mjs';
18+
import { M as MatButton, h as MatButtonModule } from './module-bd90ef77.mjs';
19+
import { a as MatIconButton } from './icon-button-2ad3ee9f.mjs';
2020
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, Validators, ControlContainer, NgForm, FormGroupDirective, NgControl } from '@angular/forms';
2121
import { M as MAT_INPUT_VALUE_ACCESSOR } from './input-value-accessor-8a79a24e.mjs';
2222
import { M as MAT_FORM_FIELD, a as MatFormFieldControl } from './form-field-6d755764.mjs';
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ class MatButtonBase {
7676
/**
7777
* Natively disabled buttons prevent focus and any pointer events from reaching the button.
7878
* In some scenarios this might not be desirable, because it can prevent users from finding out
79-
* why the button is disabled (e.g. via tooltip).
79+
* why the button is disabled (e.g. via tooltip). This is also useful for buttons that may
80+
* become disabled when activated, which would cause focus to be transferred to the document
81+
* body instead of remaining on the button.
8082
*
8183
* Enabling this input will change the button so that it is styled to be disabled and will be
8284
* marked as `aria-disabled`, but it will allow the button to receive events and focus.
@@ -208,4 +210,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
208210
const MatIconAnchor = MatIconButton;
209211

210212
export { MAT_BUTTON_CONFIG as M, MatIconButton as a, MatIconAnchor as b, MatButtonBase as c, MAT_BUTTON_HOST as d };
211-
//# sourceMappingURL=icon-button-a0d49271.mjs.map
213+
//# sourceMappingURL=icon-button-2ad3ee9f.mjs.map

fesm2022/icon-button-2ad3ee9f.mjs.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fesm2022/icon-button-a0d49271.mjs.map

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as i0 from '@angular/core';
22
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, InjectionToken, inject, booleanAttribute, NgModule } from '@angular/core';
3-
import { c as MatButtonBase, d as MAT_BUTTON_HOST, a as MatIconButton } from './icon-button-a0d49271.mjs';
3+
import { c as MatButtonBase, d as MAT_BUTTON_HOST, a as MatIconButton } from './icon-button-2ad3ee9f.mjs';
44
import { M as MatRippleModule } from './index-4bc1d6d3.mjs';
55
import { M as MatCommonModule } from './common-module-2d64df09.mjs';
66

@@ -213,4 +213,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
213213
}] });
214214

215215
export { MatButton as M, MatAnchor as a, MAT_FAB_DEFAULT_OPTIONS as b, MAT_FAB_DEFAULT_OPTIONS_FACTORY as c, MatFabButton as d, MatMiniFabButton as e, MatFabAnchor as f, MatMiniFabAnchor as g, MatButtonModule as h };
216-
//# sourceMappingURL=module-ba62ff4b.mjs.map
216+
//# sourceMappingURL=module-bd90ef77.mjs.map
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fesm2022/paginator.mjs

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)