diff --git a/bookwyrm/static/js/bookwyrm.js b/bookwyrm/static/js/bookwyrm.js index db6be3f7f..894b1fb69 100644 --- a/bookwyrm/static/js/bookwyrm.js +++ b/bookwyrm/static/js/bookwyrm.js @@ -139,6 +139,7 @@ let BookWyrm = new class { */ toggleAction(event) { let trigger = event.currentTarget; + if (!trigger.dataset.allowDefault || event.currentTarget == event.target) { event.preventDefault(); }