简体   繁体   中英

Tab through disabled=“disabled” button in Internet explorer

This is an issues for accessibility - In chrome, these buttons can be tabbed through, but Internet explorer does not allow tabbing. Any suggestions?

For w3c accessibility purpose, you can use readonly instead of disabled and remove the onfocus functionality when it is readonly.

Example below:

 ng-readonly="isReadOnly"  ng-focus="(isReadOnly) ? '' : onFocus($event)"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM