fix InvalidStateError when focusing an HTML5 input element

Fixed error `Uncaught InvalidStateError: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('email') does not support selection.` when focusing an HTML5 input element.
(Solution from [https://github.com/vitalets/x-editable/pull/592](https://github.com/vitalets/x-editable/pull/592))