Skip to content
This repository was archived by the owner on Aug 5, 2020. It is now read-only.

Commit 2403454

Browse files
author
Marlow Payne
committed
Disabling Bellows should also prevent open Bellows' items from closing
1 parent 2219133 commit 2403454

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/bellows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
close: function($item) {
177177
$item = this._item($item);
178178

179-
if (!$item.hasClass(cssClasses.OPENED)) {
179+
if (!$item.hasClass(cssClasses.OPENED) || $item.hasClass(cssClasses.DISABLED)) {
180180
return;
181181
}
182182

dist/bellows.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/bellows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
close: function($item) {
177177
$item = this._item($item);
178178

179-
if (!$item.hasClass(cssClasses.OPENED)) {
179+
if (!$item.hasClass(cssClasses.OPENED) || $item.hasClass(cssClasses.DISABLED)) {
180180
return;
181181
}
182182

0 commit comments

Comments
 (0)