forked from mirrors/bookwyrm
Fixes event propogation
This commit is contained in:
parent
b991510c03
commit
2f93017eaa
1 changed files with 3 additions and 1 deletions
|
@ -138,7 +138,9 @@ let BookWyrm = new class {
|
|||
* @return {undefined}
|
||||
*/
|
||||
toggleAction(event) {
|
||||
event.preventDefault();
|
||||
if (event.currentTarget == event.target) {
|
||||
event.preventDefault();
|
||||
}
|
||||
let trigger = event.currentTarget;
|
||||
let pressed = trigger.getAttribute('aria-pressed') === 'false';
|
||||
let targetId = trigger.dataset.controls;
|
||||
|
|
Loading…
Reference in a new issue