Points popover stays open after a click on a control that stops its click
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Target branch: develop
Observed behavior
- The app bar's points popover ("You earned N points") stays open after a click on a control that stops the click's propagation. It closes on the next click that reaches
window, or on Tab or Escape. AppBarcloses the popover from a bubble-phasewindowclick listener (AppBar.vue#L263-L282), which a stopped click never reaches.KCheckbox(KCheckbox/index.vue#L23) andAccordionItemheaders (AccordionItem.vue#L20) stop their click.- The fix for #15758 adds the Learn resource card's footer buttons and its "N locations" link to the controls that stop their click.
Steps to reproduce
- Sign in as a learner with at least one resource in Learn > My downloads.
- Open Learn > My downloads and click the points icon in the app bar.
- Tick a resource's checkbox.
Context
- Kolibri
developat758605b764andrelease-v0.20.xatb19ef0f009, KDS 5.9.0.
Acceptance Criteria
- [ ] With the points popover open, ticking a resource's checkbox in Learn > My downloads closes the popover.
- [ ] With the points popover open, a click on "View information" in a Learn > Library resource card closes the popover.
- [ ] A click on the points icon still opens the popover, and a second click closes it.
- [ ] Jest tests cover each criterion above.
AI usage
Claude Code found this while reviewing the fix for #15758, reproduced it in Jest with the real AppBar, KCheckbox and AccordionItem, and drafted this report.
@rtibblesbot /assign
Hi! 👋
Thanks so much for your interest! This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues. If there are no unassigned 'help wanted' issues available, please wait until new ones are added.
We really appreciate your willingness to help. 😊
Are you preparing for Google Summer of Code? See our GSoC guidelines.