budibase icon indicating copy to clipboard operation
budibase copied to clipboard

Configurable actions on Side Panel open/close

Open mikesealey opened this issue 10 months ago • 2 comments

Currently, clicking anywhere outside of the side-panel will close the side-panel. Side-panels are often used to contain forms that edit or update data, and clicking out of the side-panel results in the immediate loss of any unsaved changes.

In the Side Panel settings there should be an option to create actions on-open and on-close, and a toggle that allows the developer to decide if clicking out of the side-panel will close the side-panel.

Having the option to run actions on-close would give developers a chance to prompt the user to complete their form.

This feature request stems from an exploration of Discussion #13401

mikesealey avatar Apr 09 '24 13:04 mikesealey

Definitely agree. If the panel closes, all unsaved data is lost. This is a UX no-no. There should definitely be a way to prevent this from happening so easily.

For starters I suggest just disabling the default close on loss of focus. If the user clicks outside the side menu nothing should happen, where now clicking anywhere outside the panel causes it to close.

thinkbig1979 avatar Apr 10 '24 09:04 thinkbig1979