diff --git a/drawer.js b/drawer.js
index 3b489c6..eda6db4 100644
--- a/drawer.js
+++ b/drawer.js
@@ -121,6 +121,7 @@ class Drawer extends IgniteElement {
get properties() {
return {
show: false,
+ showToggleButton: true,
responsive: new IgniteProperty(true, (oldValue, value) => {
//If responsive is false and mobile is true, set mobile to false.
if (!value && this.mobile) {
@@ -162,7 +163,7 @@ class Drawer extends IgniteElement {
.child(
new button()
.class("open-btn")
- .show([this.mobile, this.show], (mobile, show) => mobile && !show)
+ .show([this.mobile, this.show, this.showToggleButton], (mobile, show, toggle) => mobile && !show && toggle)
.onClick(() => this.show = true)
.child(""),
new div()
@@ -175,7 +176,7 @@ class Drawer extends IgniteElement {
.child(
new button()
.class("close-btn")
- .show([this.mobile, this.show], (mobile, show) => mobile && show)
+ .show([this.mobile, this.show, this.toggle], (mobile, show, toggle) => mobile && show && toggle)
.onClick(() => this.show = false)
.child("")
)