{"action":"closed","issue":{"url":"https://api.github.com/repos/primefaces/primeng/issues/3221","repository_url":"https://api.github.com/repos/primefaces/primeng","labels_url":"https://api.github.com/repos/primefaces/primeng/issues/3221/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primeng/issues/3221/comments","events_url":"https://api.github.com/repos/primefaces/primeng/issues/3221/events","html_url":"https://github.com/primefaces/primeng/issues/3221","id":238920946,"number":3221,"title":"Calendar: Prevent input of invalid characters","user":{"login":"KatzeKahn","id":17009959,"avatar_url":"https://avatars2.githubusercontent.com/u/17009959?v=4","gravatar_id":"","url":"https://api.github.com/users/KatzeKahn","html_url":"https://github.com/KatzeKahn","followers_url":"https://api.github.com/users/KatzeKahn/followers","following_url":"https://api.github.com/users/KatzeKahn/following{/other_user}","gists_url":"https://api.github.com/users/KatzeKahn/gists{/gist_id}","starred_url":"https://api.github.com/users/KatzeKahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KatzeKahn/subscriptions","organizations_url":"https://api.github.com/users/KatzeKahn/orgs","repos_url":"https://api.github.com/users/KatzeKahn/repos","events_url":"https://api.github.com/users/KatzeKahn/events{/privacy}","received_events_url":"https://api.github.com/users/KatzeKahn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-27T17:10:49Z","updated_at":"2017-08-07T12:01:00Z","closed_at":"2017-08-07T12:01:00Z","body":"<!--\r\n- IF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING.\r\n- IF YOU'D LIKE TO SECURE OUR RESPONSE, YOU MAY CONSIDER PRIMENG PRO SUPPORT WHERE SUPPORT IS PROVIDED WITHIN 4 hours.\r\n-->\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[ ] bug report => Search github for a similar issue or PR before submitting\r\n[x ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap\r\n[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35\r\n```\r\n\r\n**Current behavior**\r\nn/a\r\n<!-- Describe how the bug manifests. -->\r\n\r\n**Expected behavior**\r\nInstead of clearing invalid inputs onBlur (which might be a good fallback anyway), prevent the input of invalid characters in advance. Only numeric input should be allowed. This should be easily implemented by catching and checking input's (keydown) event.\r\n\r\nThis probably presumes that only single date blocks (days, month, year, hours, minutes) can be selected by the user which is the desired behavior either way. See my comment here: #3220.\r\n\r\n<!-- Describe what the behavior would be without the bug. -->\r\n\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nAnticipate and prevent potential input errors and avoid user frustration.\r\n<!-- Describe the motivation or the concrete use case -->\r\n"}}
{"actor":{"display_login":"cagataycivici"}}