{"action":"created","issue":{"url":"https://api.github.com/repos/sanniassin/react-input-mask/issues/110","repository_url":"https://api.github.com/repos/sanniassin/react-input-mask","labels_url":"https://api.github.com/repos/sanniassin/react-input-mask/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/sanniassin/react-input-mask/issues/110/comments","events_url":"https://api.github.com/repos/sanniassin/react-input-mask/issues/110/events","html_url":"https://github.com/sanniassin/react-input-mask/issues/110","id":283988017,"number":110,"title":"Allow type='number' to be used for the input","user":{"login":"variousauthors","id":541047,"avatar_url":"https://avatars3.githubusercontent.com/u/541047?v=4","gravatar_id":"","url":"https://api.github.com/users/variousauthors","html_url":"https://github.com/variousauthors","followers_url":"https://api.github.com/users/variousauthors/followers","following_url":"https://api.github.com/users/variousauthors/following{/other_user}","gists_url":"https://api.github.com/users/variousauthors/gists{/gist_id}","starred_url":"https://api.github.com/users/variousauthors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/variousauthors/subscriptions","organizations_url":"https://api.github.com/users/variousauthors/orgs","repos_url":"https://api.github.com/users/variousauthors/repos","events_url":"https://api.github.com/users/variousauthors/events{/privacy}","received_events_url":"https://api.github.com/users/variousauthors/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-21T19:57:10Z","updated_at":"2018-05-25T15:12:43Z","closed_at":"2018-05-20T15:09:31Z","author_association":"NONE","body":"Awesome plugin, does the job. My one issue is that for ease of use on mobile I would like to be able to set the `type` field to `number` so that the number keypad comes up automatically. It's a small thing, but it makes the user experience of entering phone numbers, birthdays, and credit card info much nicer. As it stands, when I set `type='number'` I get:\r\n\r\n```\r\nUncaught DOMException: Failed to set the 'selectionStart' property on 'HTMLInputElement': The input element's type ('number') does not support selection.\r\n```\r\n\r\nI'll be poking around in the days to come, and I'll update this if I come up with an easy fix or a PR."},"comment":{"url":"https://api.github.com/repos/sanniassin/react-input-mask/issues/comments/392089448","html_url":"https://github.com/sanniassin/react-input-mask/issues/110#issuecomment-392089448","issue_url":"https://api.github.com/repos/sanniassin/react-input-mask/issues/110","id":392089448,"user":{"login":"pedrogaudencio","id":416548,"avatar_url":"https://avatars1.githubusercontent.com/u/416548?v=4","gravatar_id":"","url":"https://api.github.com/users/pedrogaudencio","html_url":"https://github.com/pedrogaudencio","followers_url":"https://api.github.com/users/pedrogaudencio/followers","following_url":"https://api.github.com/users/pedrogaudencio/following{/other_user}","gists_url":"https://api.github.com/users/pedrogaudencio/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogaudencio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogaudencio/subscriptions","organizations_url":"https://api.github.com/users/pedrogaudencio/orgs","repos_url":"https://api.github.com/users/pedrogaudencio/repos","events_url":"https://api.github.com/users/pedrogaudencio/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogaudencio/received_events","type":"User","site_admin":false},"created_at":"2018-05-25T15:12:43Z","updated_at":"2018-05-25T15:12:43Z","author_association":"NONE","body":"Awesome plugin indeed! I'm experiencing the same issue as @variousauthors. @sanniassin I also tried using `type=\"tel\"` and this is not included in the rendered output.\r\n\r\nHere's the full element I'm using:\r\n`<InputMask mask=\"9999-999\" pattern=\"[0-9]{4}-[0-9]{3}\" required placeholder=\"Insert Postal Code\" className=\"postal-code input-text\" type=\"tel\" maskChar={null} value={this.state.postalCode} onChange={this.handleChange} />`. Is there anything I'm missing? Thanks!"}}
{"actor":{"display_login":"pedrogaudencio"}}