Skip to content

Conversation

@ericokuma
Copy link
Contributor

Fixes an issue where the Share Dashboard popover would not close when clicking the Share button a second time.

The onOutsideClick handler was removed from ShareDashboardPopover as it conflicted with the bits-ui Popover's built-in toggle functionality, causing the popover to remain open. This change aligns the Share button's behavior with other top menu buttons.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes (APP-684)
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

Linear Issue: APP-684

Open in Cursor Open in Web

The ShareDashboardPopover had an onOutsideClick handler that conflicted
with the toggle behavior. When clicking the Share button to close:
1. The click was detected as 'outside click' (outside popover content)
2. onOutsideClick set isOpen=false
3. Trigger's toggle action then set isOpen back to true
4. Result: popover stayed open

Fixed by removing the redundant onOutsideClick handler since bits-ui's
Popover component already handles closing on outside clicks by default.
This makes the behavior consistent with other top menu buttons (AI,
Home, Bookmark, Alerts).

Fixes APP-684

Co-authored-by: eric.okuma <eric.okuma@rilldata.com>
@cursor
Copy link

cursor bot commented Jan 16, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@ericokuma ericokuma requested a review from AdityaHegde January 16, 2026 01:29
Copy link
Contributor Author

I see this error message: "The file does not exist at "/Users/eokuma/rill/web-admin/node_modules/.vite/deps/chunk-FSABRBUG.js?v=8258d98a" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to optimizeDeps.exclude."

Can't load Rill Cloud

@ericokuma ericokuma marked this pull request as ready for review January 16, 2026 04:05
@cursor
Copy link

cursor bot commented Jan 16, 2026

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on February 25.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants