Skip to content

Commit

Permalink
fix(ui): fix "(de)select all" taxa buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgw committed Jun 4, 2024
1 parent 7782b17 commit c4c023a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,16 @@ export class App {
})
document.getElementById('options-answers-select').addEventListener('click', () => {
document.querySelectorAll('#options-answers input').forEach(($input) => {
$input.click()
if (!$input.checked) {
$input.click()
}
})
})
document.getElementById('options-answers-deselect').addEventListener('click', () => {
document.querySelectorAll('#options-answers input').forEach(($input) => {
$input.click()
if ($input.checked) {
$input.click()
}
})
})
document.body.addEventListener('keyup', (event) => {
Expand Down

0 comments on commit c4c023a

Please sign in to comment.