forked from mirrors/bookwyrm
[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.
|
// Check checkbox, if appropriate.
|
||||||
let checkbox = trigger.dataset['controls-checkbox'];
|
let checkbox = trigger.dataset.controlsCheckbox;
|
||||||
|
|
||||||
if (checkbox) {
|
if (checkbox) {
|
||||||
this.toggleCheckbox(checkbox, pressed);
|
this.toggleCheckbox(checkbox, pressed);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set focus, if appropriate.
|
// Set focus, if appropriate.
|
||||||
let focus = trigger.dataset['focus-target'];
|
let focus = trigger.dataset.focusTarget;
|
||||||
|
|
||||||
if (focus) {
|
if (focus) {
|
||||||
this.toggleFocus(focus);
|
this.toggleFocus(focus);
|
||||||
|
|
Loading…
Reference in a new issue