fixing console errors for number input fields

Was getting a JS console error when calling setSelectionRange:
"Uncaught InvalidStateError: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection."