Handling when a dropdown menu list closes

Hi, I have a scenario where I would like to add some special handling when an opened dropdown menu closes. Is there any way to do that? Thanks