mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(checkbox): rename tabindex to tabIndex (#2953)
* Renames the checkbox `tabindex` input to the `tabIndex` input. This is consistent with other API's like for the slide-toggle and also with native inputs.
This commit is contained in:
committed by
tinayuangao
parent
902edd0213
commit
b91964a00a
@@ -7,7 +7,7 @@
|
||||
[checked]="checked"
|
||||
[disabled]="disabled"
|
||||
[name]="name"
|
||||
[tabIndex]="tabindex"
|
||||
[tabIndex]="tabIndex"
|
||||
[indeterminate]="indeterminate"
|
||||
[attr.aria-label]="ariaLabel"
|
||||
[attr.aria-labelledby]="ariaLabelledby"
|
||||
|
||||
@@ -727,7 +727,7 @@ class MultipleCheckboxes { }
|
||||
@Component({
|
||||
template: `
|
||||
<md-checkbox
|
||||
[tabindex]="customTabIndex"
|
||||
[tabIndex]="customTabIndex"
|
||||
[disabled]="isDisabled"
|
||||
[disableRipple]="disableRipple">
|
||||
</md-checkbox>`,
|
||||
|
||||
@@ -139,8 +139,8 @@ export class MdCheckbox implements ControlValueAccessor {
|
||||
get disabled(): boolean { return this._disabled; }
|
||||
set disabled(value) { this._disabled = coerceBooleanProperty(value); }
|
||||
|
||||
/** @docs-private */
|
||||
@Input() tabindex: number = 0;
|
||||
/** Tabindex value that is passed to the underlying input element. */
|
||||
@Input() tabIndex: number = 0;
|
||||
|
||||
/** Name value will be applied to the input element if present */
|
||||
@Input() name: string = null;
|
||||
|
||||
Reference in New Issue
Block a user