From 1cf7e1c8ca9de60dc4448af66b080d3d1b28c737 Mon Sep 17 00:00:00 2001 From: SassNinja Date: Sun, 16 Jul 2017 21:55:34 +0200 Subject: [PATCH] loop hasReveal value through to removeContentClasses() Since the removeContentClasses function gets called within the addContentClasses function, the hasReveal value must be included to make sure the reveal classes gets updated correctly. --- js/foundation.offcanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation.offcanvas.js b/js/foundation.offcanvas.js index 2454b3fc9..0d84a9d17 100644 --- a/js/foundation.offcanvas.js +++ b/js/foundation.offcanvas.js @@ -190,7 +190,7 @@ class OffCanvas extends Plugin { * @private */ _addContentClasses(hasReveal) { - this._removeContentClasses(); + this._removeContentClasses(hasReveal); this.$content.addClass(`has-transition-${this.options.transition} has-position-${this.position}`); if (hasReveal === true) { this.$content.addClass(`has-reveal-${this.position}`); -- 2.47.2