Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TNO-1948: Fix select checkbox issue #1395

Merged
merged 3 commits into from
Jan 10, 2024
Merged

Conversation

mihailistov
Copy link
Contributor

Jan-09-2024 12-59-41

@mihailistov mihailistov requested a review from Fosol January 9, 2024 21:00
@mihailistov mihailistov self-assigned this Jan 9, 2024
@Fosol Fosol added the bug Something isn't working label Jan 9, 2024
if (!isSelected) {
(document.getElementById(children) as HTMLInputElement).checked = false;
}
(document.getElementById(children) as HTMLInputElement).checked = isSelected;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using the DOM isn't ideal. I wonder why this was implemented this way originally?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Fosol good call, I didn't really question it. I just pushed some changes that is an alternative, more minimalist way. I tested as best I could and don't see any weird side effects. Let me know if you want me to revert it back to my initial commit.

@Fosol Fosol merged commit 0345f36 into dev Jan 10, 2024
1 check passed
@Fosol Fosol deleted the tno-1948-fix-select-checkbox-issue branch January 10, 2024 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants