Expression Node: Function Search Collapse

Expression nodes search menu for functions opens collapsed (good).
when you search for something it extends (good).
when you clear the search, the focus (selected function) is cleared (bad)
when you clear the search, all items stay extended (bad) instead of collapsing. Expected behavior would be closer to: keeping the focus on the selected item and collapsing all sections except for the section of the currently selected record.