Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open Dropdowns popup when inside a Dialog with rtl mode enabled and small resolution #4530

Open
mbechev opened this issue Jan 30, 2025 · 0 comments

Comments

@mbechev
Copy link
Contributor

mbechev commented Jan 30, 2025

Description

When displaying any dropdown component inside a Dialog, the popup cannot be opened. This happens when dir property of the document is set to rtl and on a small resolution 540x720.

  ngAfterViewInit() {
    const documentElement = this.document.documentElement;
    this.renderer.setAttribute(documentElement, 'dir', 'rtl');
  }

Steps To Reproduce

  1. Open the demo in a new window
  2. Enable the emulator and set the resolution to 540x720:
  3. Open the Dialog and try to open the ComboBox popup.
    https://stackblitz.com/edit/angular-3xi553zf-pyuzmyso

Screenshots or video

Screen.Recording.2025-01-30.at.12.39.34.mov

Actual Behavior

The popup is immediately closed which leads to this flickering. Using the Window component doesn't produce such an error:
https://stackblitz.com/edit/angular-3xi553zf-ndqhy

Expected Behavior

The functionality of the dropdowns should not be affected by this configuration.

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

No branches or pull requests

1 participant