JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Window › drop down list selection is closing smart-window › Reply To: drop down list selection is closing smart-window
January 8, 2021 at 8:57 am
#101303
davout
Member
I’ve found that I can use the following code to check what component originated the ‘onClose’ call
onClose($event, fromWindow: boolean): void {
if (($event.srcElement as Element).id === ‘smartWindow’) {
this.taskEditService.hide();
}
}
Is that the best approach?
Also, how do I block closing inside the ‘onClosing’ event handler?