Skip to content

Commit f977012

Browse files
haferjemistic100
authored andcommitted
Fix filter-description plugin not showing button for 'bootbox' option (#565)
The 'bootbox' option for the 'filter-description' plugin failed to re-show the button, once hidden. In my case, I selected a filter with a description field, pressed the down arrow key to select the next filter in the dropdown, which did not contain a description. I then pressed up arrow key to return to the previous filter with a description, but this time it did now show the filter-description button. I fixed the code to match the convention of the 'inline' and 'popover' options.
1 parent 4f30d28 commit f977012

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plugins/filter-description/plugin.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ QueryBuilder.define('filter-description', function(options) {
9696
bootbox.alert($b.data('description'));
9797
});
9898
}
99+
else {
100+
$b.show();
101+
}
99102

100103
$b.data('description', description);
101104
}

0 commit comments

Comments
 (0)