igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

Public method close() in igx-dialog emits onClose.

Open alexalex972 opened this issue 8 years ago • 1 comments

Description

Public method close() in igx-dialog emits onClose. (this also applies for API method open() and event onOpen)

Steps to reproduce

  1. Open https://stackblitz.com/edit/angular-del6th.
  2. Click Open button.
  3. Click Close button.

Result

Public method close() triggers an event onClose.

Expected result

Public methods shouldn't trigger events.

alexalex972 avatar Jun 07 '18 13:06 alexalex972

I talked with @damyanpetev and he said that this is by design. I also checked the igDialog and it behaves in a similar way.

sstoyanovIG avatar Jul 17 '18 07:07 sstoyanovIG