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

Commit 1abfd05

Browse files
committed
feat(tabs): add support for x-tab-heading
- Add support for `x-tab-heading` attribute and element Closes #4166 Fixes #1893
1 parent 84cc5f0 commit 1abfd05

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tabs/tabs.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,13 @@ angular.module('ui.bootstrap.tabs', [])
279279
}
280280
};
281281
function isTabHeading(node) {
282-
return node.tagName && (
282+
return node.tagName && (
283283
node.hasAttribute('tab-heading') ||
284284
node.hasAttribute('data-tab-heading') ||
285+
node.hasAttribute('x-tab-heading') ||
285286
node.tagName.toLowerCase() === 'tab-heading' ||
286-
node.tagName.toLowerCase() === 'data-tab-heading'
287+
node.tagName.toLowerCase() === 'data-tab-heading' ||
288+
node.tagName.toLowerCase() === 'x-tab-heading'
287289
);
288290
}
289291
})

0 commit comments

Comments
 (0)