fix: popup menu doesn't hide when no item selected