mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-13 20:31:00 +00:00
[assets] Fix broken actions for focus and checkbox:
This commit should address the following two comments: - https://github.com/mouse-reeve/bookwyrm/pull/883#discussion_r609172258 - https://github.com/mouse-reeve/bookwyrm/pull/883#discussion_r609174513
This commit is contained in:
parent
83bd417878
commit
2f90b4ce66
1 changed files with 2 additions and 2 deletions
|
@ -156,14 +156,14 @@ let BookWyrm = new class {
|
|||
}
|
||||
|
||||
// Check checkbox, if appropriate.
|
||||
let checkbox = trigger.dataset['controls-checkbox'];
|
||||
let checkbox = trigger.dataset.controlsCheckbox;
|
||||
|
||||
if (checkbox) {
|
||||
this.toggleCheckbox(checkbox, pressed);
|
||||
}
|
||||
|
||||
// Set focus, if appropriate.
|
||||
let focus = trigger.dataset['focus-target'];
|
||||
let focus = trigger.dataset.focusTarget;
|
||||
|
||||
if (focus) {
|
||||
this.toggleFocus(focus);
|
||||
|
|
Loading…
Reference in a new issue