Skip to content

Commit

Permalink
Merge pull request #966 from carloslancha/issue-965_Navbar_link
Browse files Browse the repository at this point in the history
Prevent event default on toggler click | Fixes #965
  • Loading branch information
jbalsas authored Jun 1, 2018
2 parents e43659f + bd5fe90 commit 30ac6bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/clay-navigation-bar/src/ClayNavigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ class ClayNavigationBar extends Component {

/**
* Check the click and set transition true.
* @param {!Event} event
* @private
*/
_handleClickToggler() {
_handleClickToggler(event) {
event.preventDefault();

if (this._visible && !this._isTransitioning) {
this._setCollapseHeight();
}
Expand Down

0 comments on commit 30ac6bf

Please sign in to comment.