Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(rating): fix usage of aria-valuetext #5573

Closed
wants to merge 1 commit into from

Conversation

wesleycho
Copy link
Contributor

  • Fix usage to be on top level element

This fixes #5571.

- Fix usage to be on top level element
@@ -8,7 +8,8 @@ angular.module('ui.bootstrap.rating', [])
})

.controller('UibRatingController', ['$scope', '$attrs', 'uibRatingConfig', function($scope, $attrs, ratingConfig) {
var ngModelCtrl = { $setViewValue: angular.noop };
var ngModelCtrl = { $setViewValue: angular.noop },
self = this;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that it really matters, but won't this.getTitle work in this situation, making self = this not needed?

Just like how this line works?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It actually doesn't - I tried that first :(

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, do you know why that does not work? Just curious.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it is called in the render function, which is called in $scope.rate is my suspicion.

@deeg
Copy link
Contributor

deeg commented Mar 2, 2016

This LGTM

@wesleycho wesleycho closed this in 4369800 Mar 2, 2016
@wesleycho wesleycho deleted the fix/rating-aria branch March 2, 2016 21:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uib-rating: The WAI-ARIA property aria-valuetext is not supported on elements with WAI-ARIA role button
2 participants