igniteui-angular
igniteui-angular copied to clipboard
igxToggle - Target content can't be closed when ChangeDetectionStrategy.OnPush
Description
Target content can't be closed when ChangeDetectionStrategy.OnPush.
Steps to reproduce
- Go to https://stackblitz.com/edit/igx-toggle-issue
- Click the Toggle button to open a content.
- Click the outside the button to close the content.
- Click the Toggle button again to close the content.
Result
Target content can't be closed no matter what I do when ChangeDetectionStrategy.OnPush.
Expected result
Target content should be closed regardless of ChangeDetectionStrategy.