Made selectOnBlur a function so user can decide when selection will occur upon blur event.