mardi 6 juin 2017

Aria-checked value not switching from true to false when checking the checkbox

My screen reader JAWS 17 is reading Checkbox not checked when I am on the checkbox even though I check it.

I debugged the issue and found out that the aria-checked="false" is not switching to aria-checked="true" when I check it.

I am using Google Chrome 58.0.3029.110 (64-bit)

HTML

<modified-input
         enter-space-press="checked(row)"
         disabled="!row.enabled"
         ng-click="check(row)">
 </modified-input>

Directive

function modifiedInput($window, $rootScope, _) {
        return {
            restrict: 'E',
            scope: {
                value:'=?',
                disabled:'=?',
            },
            template: (
                '<input ' +
                'type="checkbox" ' +
                'ng-disabled="disabled" ' +
                'aria-checked= "false" ' +
                'ng-value="value"/>'
            ),

        };
    }

    modifiedInput.$inject = ["$window", "$rootScope", '_'];
    module.exports = modifiedInput;




Aucun commentaire:

Enregistrer un commentaire