{"action":"created","issue":{"url":"https://api.github.com/repos/baianat/vee-validate/issues/1528","repository_url":"https://api.github.com/repos/baianat/vee-validate","labels_url":"https://api.github.com/repos/baianat/vee-validate/issues/1528/labels{/name}","comments_url":"https://api.github.com/repos/baianat/vee-validate/issues/1528/comments","events_url":"https://api.github.com/repos/baianat/vee-validate/issues/1528/events","html_url":"https://github.com/baianat/vee-validate/issues/1528","id":349692678,"node_id":"MDU6SXNzdWUzNDk2OTI2Nzg=","number":1528,"title":"Errors added after axios request 'auto-clearing'.","user":{"login":"josermzte","id":8961170,"node_id":"MDQ6VXNlcjg5NjExNzA=","avatar_url":"https://avatars0.githubusercontent.com/u/8961170?v=4","gravatar_id":"","url":"https://api.github.com/users/josermzte","html_url":"https://github.com/josermzte","followers_url":"https://api.github.com/users/josermzte/followers","following_url":"https://api.github.com/users/josermzte/following{/other_user}","gists_url":"https://api.github.com/users/josermzte/gists{/gist_id}","starred_url":"https://api.github.com/users/josermzte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josermzte/subscriptions","organizations_url":"https://api.github.com/users/josermzte/orgs","repos_url":"https://api.github.com/users/josermzte/repos","events_url":"https://api.github.com/users/josermzte/events{/privacy}","received_events_url":"https://api.github.com/users/josermzte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-11T00:50:49Z","updated_at":"2018-08-15T08:44:49Z","closed_at":null,"author_association":"NONE","body":"#### Versions:\r\n- VueJs: 2.5.7\r\n- Vee-Validate: 2.1.0-beta.7\r\n\r\nHey everyone!\r\n\r\nIm trying to set laravel errors from an axios request to my v validate error bag, apparently the error it's added correctly but it's auto cleared immediately.\r\n\r\nMy code its on a compiled webpack file, for debugging I tried to move this to html script tag and add the error manually from console, this seems to work, so don't really know what's happening with that auto clearing after the axios request.\r\n\r\nWhat I'm missing? I have a little gif with the \"auto-clearing\" (email field) where you can see how it's set for a moment and then gone\r\n\r\n![errobagg](https://user-images.githubusercontent.com/8961170/43986518-8cbe45b6-9cd7-11e8-9d4e-8be17507f6a4.gif)\r\n\r\n\r\nAnd this is the chunk of code from the axios request, it's a very simple request so I don't really have a clue of what is happening.\r\n\r\n```\r\n.catch(error => {\r\n     let requestErrors = error.response.data;\r\n     let errorFields = Object.keys(requestErrors.errors);\r\n     errorFields.map(field => {\r\n          let errorString = requestErrors.errors[field].join(', ');\r\n          this.errors.add({field: field, msg: errorString});\r\n     });\r\n});\r\n```\r\n\r\nFinally, amazing work, keep it good ❤️"},"comment":{"url":"https://api.github.com/repos/baianat/vee-validate/issues/comments/413133615","html_url":"https://github.com/baianat/vee-validate/issues/1528#issuecomment-413133615","issue_url":"https://api.github.com/repos/baianat/vee-validate/issues/1528","id":413133615,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzEzMzYxNQ==","user":{"login":"developernaren","id":3628468,"node_id":"MDQ6VXNlcjM2Mjg0Njg=","avatar_url":"https://avatars1.githubusercontent.com/u/3628468?v=4","gravatar_id":"","url":"https://api.github.com/users/developernaren","html_url":"https://github.com/developernaren","followers_url":"https://api.github.com/users/developernaren/followers","following_url":"https://api.github.com/users/developernaren/following{/other_user}","gists_url":"https://api.github.com/users/developernaren/gists{/gist_id}","starred_url":"https://api.github.com/users/developernaren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developernaren/subscriptions","organizations_url":"https://api.github.com/users/developernaren/orgs","repos_url":"https://api.github.com/users/developernaren/repos","events_url":"https://api.github.com/users/developernaren/events{/privacy}","received_events_url":"https://api.github.com/users/developernaren/received_events","type":"User","site_admin":false},"created_at":"2018-08-15T08:44:49Z","updated_at":"2018-08-15T08:44:49Z","author_association":"NONE","body":"For me it did not have to be a network request, it could be a single `Promise`\r\n\r\n**Context:**\r\nI am using this with vuetify.\r\n\r\n**Issue**  \r\nI tried to add the validation error returned from laravel backend, but it turned out the same was happening for simple `Promise` resolution.\r\n\r\nWhen the submit button was clicked I was changing the button into one with  loader( with `:loading` prop of `v-btn`). and after the error was thrown from the backend  I was changing it back to a button without the loader loader. When the loader change was happening, the error kept resetting but when I removed the loading part altogether, it started working as expected. \r\n\r\nSo my guess would be, if there was some kind of check that you have put in place to check the changes in the elements in the form and resetting the errors or something.\r\n"}}
{"actor":{"display_login":"developernaren"}}