webapp: Hiding/showing elements should not be modifying style attribute #1
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: computernewb/MSAgent-Chat#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Doing
el.style.display = "block";
to show an element is a bad idea because not everything is a block, and doing it this way is inline CSS which overrides everything else. The newd-none
class should instead be used, using the DOM HTMLElement classList add & remove methods.