Dropdown change detection invocations even if closed #1513
Labels
type: bug
Something isn't working
Workflow: Issue created
JIRA issue is created and will be analyzed
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
The text was updated successfully, but these errors were encountered: