mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-21 07:36:42 +00:00
Javascript linter
This commit is contained in:
parent
3026a86b11
commit
8b5ac6b012
1 changed files with 1 additions and 0 deletions
|
@ -139,6 +139,7 @@ let BookWyrm = new class {
|
|||
*/
|
||||
toggleAction(event) {
|
||||
let trigger = event.currentTarget;
|
||||
|
||||
if (!trigger.dataset.allowDefault || event.currentTarget == event.target) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue