Skip to content

Commit

Permalink
#138 - Do not assume the navbar-burger element always exists within a…
Browse files Browse the repository at this point in the history
… navbar
  • Loading branch information
Thomas Erbe committed Jun 25, 2022
1 parent d1c8ad1 commit 76ce1e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 0.12.2
+ **Bug** [131](https://github.com/VizuaaLOG/BulmaJS/issues/131) Navbar will now detect if window is defined before trying to attach sticky events
+ **Bug** [138](https://github.com/VizuaaLOG/BulmaJS/issues/138) Do not assume the navbar-burger element always exists

# 0.12.1
+ **Bug** [120](https://github.com/VizuaaLOG/BulmaJS/issues/120) Panel tabs will now properly take into account `is-active`. On `init` this will become the starting tab
Expand Down
4 changes: 3 additions & 1 deletion src/plugins/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ export class Navbar extends Plugin {
* @return {undefined}
*/
registerEvents() {
this.triggerElement.addEventListener('click', this.handleTriggerClick.bind(this));
if(this.triggerElement) {
this.triggerElement.addEventListener('click', this.handleTriggerClick.bind(this));
}

if (this.sticky) {
this.enableSticky();
Expand Down

0 comments on commit 76ce1e0

Please sign in to comment.