Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 2b8d18f

Browse files
gmoothartThomasBurleson
authored andcommitted
fix(navbar): fixes navbar logic in angular 1.3
Closes #8419
1 parent e9a1d4f commit 2b8d18f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/navBar/navBar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ function MdNavItemController($element) {
461461
/** @private {boolean} */
462462
this._focused = false;
463463

464-
var hasNavClick = this.mdNavClick != null;
465-
var hasNavHref = this.mdNavHref != null;
466-
var hasNavSref = this.mdNavSref != null;
464+
var hasNavClick = !!($element.attr('md-nav-click'));
465+
var hasNavHref = !!($element.attr('md-nav-href'));
466+
var hasNavSref = !!($element.attr('md-nav-sref'));
467467

468468
// Cannot specify more than one nav attribute
469469
if ((hasNavClick ? 1:0) + (hasNavHref ? 1:0) + (hasNavSref ? 1:0) > 1) {

0 commit comments

Comments
 (0)