Open KarimM7mad opened 1 month ago
I am facing an issue with IX-dropdown in ix v2.4 with Angular v16
checkout this stack blitz example to know more
open the following stackblitz example https://stackblitz.com/~/github.com/KarimM7mad/ix-dropdown-change-detection-issue-v16
open the stackblitz's run in a new tab and connect the tab to the project
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)
scroll down till the button (triggering the dropdown) disappears from the viewport
you will notice that no change detections occurs as you didn't interact with the dropdown.
scroll to top
click on the button to show the dropdown, and keep it open.
scroll down till the opened dropdown disappears from the viewport.
look at the console, you will find change detections invoked on scrolling, which is expected.
Now, don't make any scrolling and click anywhere to close the dropdown.
scroll up and down in the page.
Expected:
Actual
🤖 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
Prerequisites
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
open the following stackblitz example https://stackblitz.com/~/github.com/KarimM7mad/ix-dropdown-change-detection-issue-v16
open the stackblitz's run in a new tab and connect the tab to the project
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)
scroll down till the button (triggering the dropdown) disappears from the viewport
you will notice that no change detections occurs as you didn't interact with the dropdown.
scroll to top
click on the button to show the dropdown, and keep it open.
scroll down till the opened dropdown disappears from the viewport.
look at the console, you will find change detections invoked on scrolling, which is expected.
Now, don't make any scrolling and click anywhere to close the dropdown.
scroll up and down in the page.
Expected:
Actual