{"action":"opened","issue":{"url":"https://api.github.com/repos/Utzel-Butzel/react-virtual-keyboard/issues/20","repository_url":"https://api.github.com/repos/Utzel-Butzel/react-virtual-keyboard","labels_url":"https://api.github.com/repos/Utzel-Butzel/react-virtual-keyboard/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/Utzel-Butzel/react-virtual-keyboard/issues/20/comments","events_url":"https://api.github.com/repos/Utzel-Butzel/react-virtual-keyboard/issues/20/events","html_url":"https://github.com/Utzel-Butzel/react-virtual-keyboard/issues/20","id":391114208,"node_id":"MDU6SXNzdWUzOTExMTQyMDg=","number":20,"title":"How to set lenght of input","user":{"login":"NSLog0","id":1640817,"node_id":"MDQ6VXNlcjE2NDA4MTc=","avatar_url":"https://avatars2.githubusercontent.com/u/1640817?v=4","gravatar_id":"","url":"https://api.github.com/users/NSLog0","html_url":"https://github.com/NSLog0","followers_url":"https://api.github.com/users/NSLog0/followers","following_url":"https://api.github.com/users/NSLog0/following{/other_user}","gists_url":"https://api.github.com/users/NSLog0/gists{/gist_id}","starred_url":"https://api.github.com/users/NSLog0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NSLog0/subscriptions","organizations_url":"https://api.github.com/users/NSLog0/orgs","repos_url":"https://api.github.com/users/NSLog0/repos","events_url":"https://api.github.com/users/NSLog0/events{/privacy}","received_events_url":"https://api.github.com/users/NSLog0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-14T13:36:55Z","updated_at":"2018-12-14T13:36:55Z","closed_at":null,"author_association":"NONE","body":"I tried to restrict the length of input to maximum 6. I was set ```maxLength=\"6\"``` is not working\r\n\r\nthen I tried to use a stupid way like this \r\n\r\n```\r\nonPasscode = e => {\r\n    if(this.state.passcode.length <= 5) {\r\n      this.setState({passcode: e.v});\r\n    }\r\n  };\r\n```\r\nIt's worked on a real keyboard but on the lib, I still click on a button and get the result.\r\n\r\nThis is my code, Setting like an example\r\n\r\n```\r\n<Keyboard\r\n                name=\"keyboard\"\r\n                ref={k => this.keyboard = k}\r\n                options={{\r\n                  type: \"number\",\r\n                  layout: \"custom\",\r\n                  customLayout: this.state.customLayout,\r\n                  alwaysOpen: false,\r\n                  usePreview: false,\r\n                  useWheel: false,\r\n                  stickyShift: false,\r\n                  appendLocally: true,\r\n                  color: \"light\",\r\n                  updateOnChange: true,\r\n                  initialFocus: true,\r\n                  display: {\r\n                    accept: \"Submit\"\r\n                  }\r\n                }}\r\n                maxLength=\"6\"\r\n                onChange={v => {\r\n                  this.onPasscode({ v });\r\n                }}\r\n                value={this.state.passcode}\r\n                />\r\n```"}}
{"actor":{"display_login":"NSLog0"}}