Chain only if select

Fixed my previous implementation of running only if the selector is a select.