Fix for the typeheadOnSelect callback that was never executed.