Escape does not close the comment thread popover #34
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_whiteboard#34
Loading…
Add table
Add a link
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?
Opening a comment thread by clicking its marker shows a popover with replies and Resolve / Delete actions. Pressing Escape should dismiss the popover but nothing happens — the user has to click the X button or click outside the whiteboard container.
Root cause:
showCommentPopoverincomments.jshas no keydown handler. OnlyshowInputPopover(the new-comment textarea) listens for Escape.Fix: when the thread popover opens, attach a document-level keydown handler that calls
hidePopover()on Escape; detach it inhidePopoverso it doesn't leak.Pull request opened: #35