diff --git a/public/app/angular/angular_wrappers.ts b/public/app/angular/angular_wrappers.ts index 4747c83e977..e70b00537cc 100644 --- a/public/app/angular/angular_wrappers.ts +++ b/public/app/angular/angular_wrappers.ts @@ -134,6 +134,7 @@ export function registerAngularDirectives() { 'isConfigured', 'inputWidth', 'labelWidth', + 'aria-label', ['onReset', { watchDepth: 'reference', wrapApply: true }], ['onChange', { watchDepth: 'reference', wrapApply: true }], ]); diff --git a/public/app/angular/services/ng_react.ts b/public/app/angular/services/ng_react.ts index 3cf65f48708..3d87d7f0ab4 100644 --- a/public/app/angular/services/ng_react.ts +++ b/public/app/angular/services/ng_react.ts @@ -168,9 +168,9 @@ function getPropExpression(prop: any) { * @param attrs All attributes of the component. * @param propName Name of the prop that react component expects. */ -function findAttribute(attrs: string, propName: string): string { - const index = Object.keys(attrs).find((attr) => { - return attr.toLowerCase() === propName.toLowerCase() || attr.toLowerCase() === kebabCase(propName); +function findAttribute(attrs: object, propName: string): string { + const index = Object.keys(attrs).find((attr: any) => { + return attr.toLowerCase() === propName.toLowerCase() || kebabCase(attr) === kebabCase(propName); }); // @ts-ignore return attrs[index]; diff --git a/public/app/core/components/AccessControl/AddPermission.tsx b/public/app/core/components/AccessControl/AddPermission.tsx index ac71e368650..b2da564b1fe 100644 --- a/public/app/core/components/AccessControl/AddPermission.tsx +++ b/public/app/core/components/AccessControl/AddPermission.tsx @@ -92,6 +92,7 @@ export const AddPermission = ({ )} +