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

fix(accordion): add data-uib-accordion-header support #5839

Closed
wants to merge 2 commits into from

Conversation

perryhoffman
Copy link
Contributor

@perryhoffman perryhoffman commented Apr 24, 2016

Fixing uib-accordion-header directive to transclude data properly when the attribute has the 'data-' prefix.

Fixing uib-accordion-header directive to transclude data properly when it has the 'data-' prefix.

Fixes angular-ui#5834
@@ -124,7 +124,7 @@ angular.module('ui.bootstrap.accordion', ['ui.bootstrap.collapse'])
link: function(scope, element, attrs, controller) {
scope.$watch(function() { return controller[attrs.uibAccordionTransclude]; }, function(heading) {
if (heading) {
var elem = angular.element(element[0].querySelector('[uib-accordion-header]'));
var elem = angular.element(element[0].querySelector('[uib-accordion-header], [data-uib-accordion-header]'));
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change it to support all of the selectors possible to be matched similar to how it works for the tabs? https://github.com/angular-ui/bootstrap/blob/master/src/tabs/tabs.js#L230-L236

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I can add them to the selector string.

@wesleycho wesleycho added this to the 1.3.3 milestone Apr 27, 2016
@wesleycho wesleycho closed this in 4c40d9d Apr 28, 2016
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.

2 participants