When I'm writing an Arcade Expression in the Arcade popup element, it is far too easy to accidentally click 'Cancel' instead of 'Done.' It would be really nice to have have the ability to enable a 'Save changes?' prompt when cancelling out of the Arcade editor. I know there are certainly other ways to handle this like writing the expression in the Arcade playground or some other code editor, but sometimes it would be nice to have a little security in the map viewer itself.
Could also be an AGOL idea as well.