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

Dropdown change detection invocations even if closed #1513

Open
2 tasks done
KarimM7mad opened this issue Oct 13, 2024 · 1 comment
Open
2 tasks done

Dropdown change detection invocations even if closed #1513

KarimM7mad opened this issue Oct 13, 2024 · 1 comment
Labels
type: bug Something isn't working Workflow: Issue created JIRA issue is created and will be analyzed

Comments

@KarimM7mad
Copy link

Prerequisites

  • I have read the Contributing Guidelines.
  • I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.

What happened?

I am facing an issue with IX-dropdown in ix v2.4 with Angular v16

checkout this stack blitz example to know more

  1. open the following stackblitz example
    https://stackblitz.com/~/github.com/KarimM7mad/ix-dropdown-change-detection-issue-v16

  2. open the stackblitz's run in a new tab and connect the tab to the project

  3. open the console (I have a console log that detect change detections invocations, which will print if a CD occurs and how long did it take)

  4. scroll down till the button (triggering the dropdown) disappears from the viewport

  5. you will notice that no change detections occurs as you didn't interact with the dropdown.

  6. scroll to top

  7. click on the button to show the dropdown, and keep it open.

  8. scroll down till the opened dropdown disappears from the viewport.

  9. look at the console, you will find change detections invoked on scrolling, which is expected.

  10. Now, don't make any scrolling and click anywhere to close the dropdown.

  11. scroll up and down in the page.

Expected:

  • the dropdown should not be firing change detections while it is closed.

Actual

  • it is doing that on any browser event (not limited to clicking in an empty area, scrolling, resizing, ... etc)
@KarimM7mad KarimM7mad added the triage We discuss this topic in our internal weekly label Oct 13, 2024
@matthiashader matthiashader added type: bug Something isn't working Workflow: Issue created JIRA issue is created and will be analyzed and removed triage We discuss this topic in our internal weekly labels Oct 14, 2024
Copy link
Contributor

github-actions bot commented Oct 14, 2024

🤖 Hello @KarimM7mad

Your issue will be analyzed and is part of our internal workflow.
To get informed about our workflow please checkout the Contributing Guidelines

JIRA: IX-1832

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working Workflow: Issue created JIRA issue is created and will be analyzed
Projects
None yet
Development

No branches or pull requests

2 participants