The triggered bool is not even necessary because input is no longer handled after the OverlayContainer's state is set to hidden.