kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Points popover stays open after a click on a control that stops its click

Open rtibblesbot opened this issue 1 week ago • 2 comments

❌ 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.
  • AppBar closes the popover from a bubble-phase window click listener (AppBar.vue#L263-L282), which a stopped click never reaches.
  • KCheckbox (KCheckbox/index.vue#L23) and AccordionItem headers (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

  1. Sign in as a learner with at least one resource in Learn > My downloads.
  2. Open Learn > My downloads and click the points icon in the app bar.
  3. Tick a resource's checkbox.

Context

  • Kolibri develop at 758605b764 and release-v0.20.x at b19ef0f009, 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 avatar Nov 25 '26 11:11 rtibblesbot

@rtibblesbot /assign

ArpitaSamanta10 avatar Nov 25 '26 13:11 ArpitaSamanta10

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.

learning-equality-bot avatar Nov 25 '26 13:11 learning-equality-bot