Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › General Discussions › Window › drop down list selection is closing smart-window › Reply To: drop down list selection is closing smart-window
Hi,
Tracing this further I have found that if a ‘smart-window’ includes a ‘smart-drop-down-list’ inside a form, then when I change/select a new drop down item then this is generating ‘smart-window’ level ‘onClosing’ and ‘onClose’ event calls. Is this a bug?
(I would attach a screenshot, but I can’t find a way of copy/pasting images into this forum message)
It’s no clear from your docs how I would stop a window closing via a ‘onClosing’ event handler. The code below shows my current handler.
onClosing(event: CustomEvent): void {
console.log('onclosing ', event);
}
How would I be able to detect 'onClosing' calls that were generated by the drop-down-list versus the smart window itself?