{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/13014","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/13014/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/13014/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/13014/events","html_url":"https://github.com/ant-design/ant-design/issues/13014","id":378530977,"node_id":"MDU6SXNzdWUzNzg1MzA5Nzc=","number":13014,"title":"Is there a way to wrap errors inside element, e.g. <div>, when calling them programmatically?","user":{"login":"tylik1","id":741467,"node_id":"MDQ6VXNlcjc0MTQ2Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/741467?v=4","gravatar_id":"","url":"https://api.github.com/users/tylik1","html_url":"https://github.com/tylik1","followers_url":"https://api.github.com/users/tylik1/followers","following_url":"https://api.github.com/users/tylik1/following{/other_user}","gists_url":"https://api.github.com/users/tylik1/gists{/gist_id}","starred_url":"https://api.github.com/users/tylik1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylik1/subscriptions","organizations_url":"https://api.github.com/users/tylik1/orgs","repos_url":"https://api.github.com/users/tylik1/repos","events_url":"https://api.github.com/users/tylik1/events{/privacy}","received_events_url":"https://api.github.com/users/tylik1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"zombieJ","id":5378891,"node_id":"MDQ6VXNlcjUzNzg4OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/5378891?v=4","gravatar_id":"","url":"https://api.github.com/users/zombieJ","html_url":"https://github.com/zombieJ","followers_url":"https://api.github.com/users/zombieJ/followers","following_url":"https://api.github.com/users/zombieJ/following{/other_user}","gists_url":"https://api.github.com/users/zombieJ/gists{/gist_id}","starred_url":"https://api.github.com/users/zombieJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zombieJ/subscriptions","organizations_url":"https://api.github.com/users/zombieJ/orgs","repos_url":"https://api.github.com/users/zombieJ/repos","events_url":"https://api.github.com/users/zombieJ/events{/privacy}","received_events_url":"https://api.github.com/users/zombieJ/received_events","type":"User","site_admin":false},"assignees":[{"login":"zombieJ","id":5378891,"node_id":"MDQ6VXNlcjUzNzg4OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/5378891?v=4","gravatar_id":"","url":"https://api.github.com/users/zombieJ","html_url":"https://github.com/zombieJ","followers_url":"https://api.github.com/users/zombieJ/followers","following_url":"https://api.github.com/users/zombieJ/following{/other_user}","gists_url":"https://api.github.com/users/zombieJ/gists{/gist_id}","starred_url":"https://api.github.com/users/zombieJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zombieJ/subscriptions","organizations_url":"https://api.github.com/users/zombieJ/orgs","repos_url":"https://api.github.com/users/zombieJ/repos","events_url":"https://api.github.com/users/zombieJ/events{/privacy}","received_events_url":"https://api.github.com/users/zombieJ/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-11-08T00:44:18Z","updated_at":"2018-11-08T01:11:49Z","closed_at":null,"author_association":"NONE","body":"- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.\r\n\r\n### Version\r\n3.10.4\r\n\r\n### Environment\r\nGoogle Chrome latest version\r\n\r\n### Reproduction link\r\n[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/qlq3j2yn3j)\r\n\r\n### Steps to reproduce\r\nCreate 2 or more errors and call them programmatically with this.props.form.setFields\r\n\r\n\r\n### What is expected?\r\nAbility to view each error on different line\r\n\r\n### What is actually happening?\r\nBoth errors will appear on the same line\r\n\r\n\r\n<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/436836920","html_url":"https://github.com/ant-design/ant-design/issues/13014#issuecomment-436836920","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/13014","id":436836920,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjgzNjkyMA==","user":{"login":"tylik1","id":741467,"node_id":"MDQ6VXNlcjc0MTQ2Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/741467?v=4","gravatar_id":"","url":"https://api.github.com/users/tylik1","html_url":"https://github.com/tylik1","followers_url":"https://api.github.com/users/tylik1/followers","following_url":"https://api.github.com/users/tylik1/following{/other_user}","gists_url":"https://api.github.com/users/tylik1/gists{/gist_id}","starred_url":"https://api.github.com/users/tylik1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylik1/subscriptions","organizations_url":"https://api.github.com/users/tylik1/orgs","repos_url":"https://api.github.com/users/tylik1/repos","events_url":"https://api.github.com/users/tylik1/events{/privacy}","received_events_url":"https://api.github.com/users/tylik1/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T01:11:49Z","updated_at":"2018-11-08T01:11:49Z","author_association":"NONE","body":"I think i got a hacky way to solve this with adding css style ` white-space: pre-line` to ant-form-explain\r\nand adding new line character (\\n) at the end of each error\r\n\r\nHere is updated sandbox if someone runs into the same issue.\r\nhttps://codesandbox.io/s/vnm66mo4my\r\nStyles are in index.css\r\n\r\nStill would be better to have ability to style each item individually"}}
{"actor":{"display_login":"tylik1"}}