igniteui-angular
igniteui-angular copied to clipboard
Public method close() in igx-dialog emits onClose.
Description
Public method close() in igx-dialog emits onClose. (this also applies for API method open() and event onOpen)
Steps to reproduce
- Open https://stackblitz.com/edit/angular-del6th.
- Click Open button.
- Click Close button.
Result
Public method close() triggers an event onClose.
Expected result
Public methods shouldn't trigger events.
I talked with @damyanpetev and he said that this is by design. I also checked the igDialog and it behaves in a similar way.