mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Fix navigational buttons no longer work in VfsSelect dialog
This commit is contained in:
parent
8221d66ce2
commit
cedaf4027c
@ -414,10 +414,15 @@ export class Et2Dialog extends Et2Widget(ScopedElementsMixin(SlotMixin(LionDialo
|
||||
// @ts-ignore
|
||||
this._button_id = ev.target?.getAttribute("button_id") ? parseInt(ev.target?.getAttribute("button_id")) : (ev.target?.getAttribute("id") || null);
|
||||
|
||||
// we always need to stop the event as otherwise the result would be submitted to server-side eT2 handler
|
||||
// which does not know what to do with it, as the dialog was initiated from client-side (no eT2 request)
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
// we need to consider still buttons used in dialogs that may actually submit and have server-side interactions(eg.vfsSelect)
|
||||
if (!ev.target?.getInstanceManager()?._etemplate_exec_id)
|
||||
{
|
||||
// we always need to stop the event as otherwise the result would be submitted to server-side eT2 handler
|
||||
// which does not know what to do with it, as the dialog was initiated from client-side (no eT2 request)
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
}
|
||||
|
||||
|
||||
// Handle anything bound via et2 onclick property
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user