Bugfix - Clicking on tag view list toggles checkbox (#4227) * Adding event.preventDefault() to prevent checkbox toggle when clicking to open pop-up. * Adjusting comment.

3f842d2049455cbdbad3116db3fc21f9ad06b944

Marcela Petra Ferraz de Novaes <novaes.marcela@outlook.com>

Signed
1 files changed, +6 -1Showing whitespace changes
public/scripts/tags.js+6 -1
@@ -2012,7 +2012,12 @@ export function initTags() {
20122012 $(document).on('click', '#rm_button_group_chats', onGroupCreateClick);
20132013 $(document).on('click', '.tag_remove', onTagRemoveClick);
20142014 $(document).on('input', '.tag_input', onTagInput);
20152015 $(document).on('click', '.tags_view', onViewTagsListClickfunction (event); {
2016+ // 1. Prevent the label from toggling the checkbox
2017+ event.preventDefault();
2018+ // 2. Open the tag view list dialog
2019+ onViewTagsListClick();
2020+ });
20162021 $(document).on('click', '.tag_delete', onTagDeleteClick);
20172022 $(document).on('click', '.tag_as_folder', onTagAsFolderClick);
20182023 $(document).on('input', '.tag_view_name', onTagRenameInput);