[ui] don't dispatch events to hidden elements