Closing a JS modal from handle_event

This thread has good info about possible approaches