{"action":"closed","issue":{"url":"https://api.github.com/repos/plataformatec/simple_form/issues/1589","repository_url":"https://api.github.com/repos/plataformatec/simple_form","labels_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1589/labels{/name}","comments_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1589/comments","events_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1589/events","html_url":"https://github.com/plataformatec/simple_form/issues/1589","id":330375847,"node_id":"MDU6SXNzdWUzMzAzNzU4NDc=","number":1589,"title":"citext column type does not set HTML5 input type properly","user":{"login":"brucew","id":329790,"node_id":"MDQ6VXNlcjMyOTc5MA==","avatar_url":"https://avatars3.githubusercontent.com/u/329790?v=4","gravatar_id":"","url":"https://api.github.com/users/brucew","html_url":"https://github.com/brucew","followers_url":"https://api.github.com/users/brucew/followers","following_url":"https://api.github.com/users/brucew/following{/other_user}","gists_url":"https://api.github.com/users/brucew/gists{/gist_id}","starred_url":"https://api.github.com/users/brucew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brucew/subscriptions","organizations_url":"https://api.github.com/users/brucew/orgs","repos_url":"https://api.github.com/users/brucew/repos","events_url":"https://api.github.com/users/brucew/events{/privacy}","received_events_url":"https://api.github.com/users/brucew/received_events","type":"User","site_admin":false},"labels":[{"id":81288,"node_id":"MDU6TGFiZWw4MTI4OA==","url":"https://api.github.com/repos/plataformatec/simple_form/labels/Bug","name":"Bug","color":"ff0303","default":false},{"id":928925888,"node_id":"MDU6TGFiZWw5Mjg5MjU4ODg=","url":"https://api.github.com/repos/plataformatec/simple_form/labels/Needs%20pull-request","name":"Needs pull-request","color":"b2ffc4","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-07T17:57:34Z","updated_at":"2018-09-22T01:55:37Z","closed_at":"2018-09-22T01:55:37Z","author_association":"NONE","body":"## Environment\r\n\r\n- Ruby 2.4.2\r\n- Rails 5.1.1\r\n- Simple Form 4.01\r\n\r\n## Current behavior\r\nA database column of type :citext renders the following html5 input (User.first_name example):\r\n`<input class=\"string citext required\" type=\"citext\" value=\"\" name=\"user[first_name]\" id=\"user_first_name\" data-validate=\"true\">`\r\nNote that the input type is citext, which I don't think is a valid HTML5 input type and in my case causes Foundation to fail to apply the proper CSS to the input.\r\n\r\n## Expected behavior\r\nExpected input example:\r\n`<input class=\"string citext required\" type=\"text\" value=\"\" name=\"user[first_name]\" id=\"user_first_name\" data-validate=\"true\">`\r\n\r\n## Potential Fix\r\nUpdating the string? method in SimpleForm::Inputs::StringInput seems to be the easiest fix:\r\n```     \r\ndef string?\r\n  input_type == :string || input_type == :citext\r\nend\r\n```\r\n"}}
{"actor":{"display_login":"feliperenan"}}