Publish unselect events before select events, which fixes the bubble locking bug.