mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(radio/checkbox/toggle): fix the tab index attribute so you can tab to them
references #745
This commit is contained in:
@@ -83,7 +83,7 @@ class MediaToggle {
|
||||
'role': 'checkbox',
|
||||
'tappable': 'true',
|
||||
'[attr.id]': 'id',
|
||||
'[attr.tab-index]': 'tabIndex',
|
||||
'[tabindex]': 'tabIndex',
|
||||
'[attr.aria-checked]': 'checked',
|
||||
'[attr.aria-disabled]': 'disabled',
|
||||
'[attr.aria-labelledby]': 'labelId',
|
||||
@@ -118,6 +118,7 @@ export class Toggle {
|
||||
console.warn('<ion-switch> has been renamed to <ion-toggle>, please update your HTML');
|
||||
}
|
||||
|
||||
this.tabIndex = 0;
|
||||
|
||||
this.form = form;
|
||||
form.register(this);
|
||||
|
||||
Reference in New Issue
Block a user