implementing selectOnFocus and data-mask-selectonfocus option