Topic: Bug in sidenav.js

aboulfaouz free asked 5 years ago


Hi guys,

I think you forgot to set the sidenav status, which leads to undesirable behaviour.

key: "openOnClick", value: function openOnClick() { var _this3 = this;

    this.$element.on('click', function (e) {
      e.preventDefault();
      if (_this3.menuOut === true) {
        _this3.menuOut = false;

        _this3.removeMenu();
      } else {
        _this3.menuOut = true; // ADDED THE STATUS HERE
        if (_this3.options.showOverlay === true) {
          _this3.$sidenavOverlay = $('<div id="sidenav-overlay"></div>');

          _this3.$body.append(_this3.$sidenavOverlay);
        } else {
          _this3.showCloseButton();
        }

        var translateX = [];


Thank you for reporting us this bug. This will be fixed soon



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.5
  • Device: Mac
  • Browser: Chrome
  • OS: MacIs
  • Provided sample code: No
  • Provided link: No