Skip to content

fix: Set DialogContainerRenderable visibility based on dialog count#17

Merged
msmps merged 2 commits intomsmps:mainfrom
ainergiz:fix/dialog-container-visibility
Jan 6, 2026
Merged

fix: Set DialogContainerRenderable visibility based on dialog count#17
msmps merged 2 commits intomsmps:mainfrom
ainergiz:fix/dialog-container-visibility

Conversation

@ainergiz
Copy link
Contributor

@ainergiz ainergiz commented Jan 6, 2026

The container was intercepting all mouse events (scroll, click) even when no dialogs were displayed because it never set visible = false.

Changes:

  • Set this.visible = false in constructor
  • Update this.visible in updateBackdropVisibility() alongside backdrop

Hopefully fixes: 16[https://github.com//issues/16]

ainergiz and others added 2 commits January 6, 2026 22:15
The container was intercepting all mouse events (scroll, click) even
when no dialogs were displayed because it never set `visible = false`.

Changes:
- Set `this.visible = false` in constructor
- Update `this.visible` in `updateBackdropVisibility()` alongside backdrop

Fixes: ainergiz/xfeed#204
Repro: https://github.com/ainergiz/xfeed/tree/repro/dialog-hit-grid-bug
…ntainerRenderable

Updated the DialogContainerRenderable to have a transparent background and set its initial visibility to false. This change ensures that the container does not intercept mouse events when no dialogs are displayed.

Changes:
- Added `backgroundColor: "transparent"` to the container style
- Set `visible: false` in the constructor

This complements the previous fix for visibility management based on dialog count.
Copy link
Owner

@msmps msmps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent find! thanks for the contribution @ainergiz

@msmps msmps merged commit 2c58639 into msmps:main Jan 6, 2026
1 check passed
@ainergiz ainergiz deleted the fix/dialog-container-visibility branch January 6, 2026 23:00
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.

2 participants