function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Scott H.Scott H. 

Is there a beforeTabClosed lightning event for console tabs?


I'm trying to look for a way to prevent a console tab from closing on a certain condition.

Basically, if the user leaves a specific field empty, I'm looking to bring up a modal that will either let the user fill in the field and continue closing the tab, or cancel closing the tab.

I've tried using the tabClosed event

However from testing, this event looks like it is called after the tab gets closed. Is there an event that happens before the tab closes that could be used for this case?