{"action":"created","issue":{"url":"https://api.github.com/repos/samdark/yii2-cookbook/issues/129","repository_url":"https://api.github.com/repos/samdark/yii2-cookbook","labels_url":"https://api.github.com/repos/samdark/yii2-cookbook/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/samdark/yii2-cookbook/issues/129/comments","events_url":"https://api.github.com/repos/samdark/yii2-cookbook/issues/129/events","html_url":"https://github.com/samdark/yii2-cookbook/issues/129","id":165171376,"number":129,"title":"ActiveForm.js: добавленные поля не валидируются по «blur»","user":{"login":"w3lifer","id":14075412,"avatar_url":"https://avatars.githubusercontent.com/u/14075412?v=3","gravatar_id":"","url":"https://api.github.com/users/w3lifer","html_url":"https://github.com/w3lifer","followers_url":"https://api.github.com/users/w3lifer/followers","following_url":"https://api.github.com/users/w3lifer/following{/other_user}","gists_url":"https://api.github.com/users/w3lifer/gists{/gist_id}","starred_url":"https://api.github.com/users/w3lifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3lifer/subscriptions","organizations_url":"https://api.github.com/users/w3lifer/orgs","repos_url":"https://api.github.com/users/w3lifer/repos","events_url":"https://api.github.com/users/w3lifer/events{/privacy}","received_events_url":"https://api.github.com/users/w3lifer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-12T20:21:40Z","updated_at":"2016-07-13T13:33:21Z","closed_at":"2016-07-13T10:30:31Z","body":"Изначально у меня есть такое поле:\r\n\r\n``` js\r\n{\r\n    \"id\": \"source-0-title\",\r\n    \"name\": \"[0]title\",\r\n    \"container\": \".field-source-0-title\",\r\n    \"input\": \"#source-0-title\",\r\n    \"validate\": function(attribute, value, messages, deferred, $form) {\r\n      yii.validation.required(value, messages, {\r\n        \"message\": \"Source Title cannot be blank.\"\r\n      });\r\n}\r\n```\r\n\r\nЯ добавляю новое (путем глубокой копии существующей разметки исходного поля и обработки его HTML-атрибутов):\r\n\r\n``` js\r\n{\r\n    \"id\": \"source-1-title\",\r\n    \"name\": \"[1]title\",\r\n    \"container\": \".field-source-1-title\",\r\n    \"input\": \"#source-1-title\",\r\n    \"validate\": function(attribute, value, messages, deferred, $form) {\r\n      yii.validation.required(value, messages, {\r\n        \"message\": \"Source Title cannot be blank.\"\r\n      });\r\n}\r\n```\r\n\r\nЕсли поставить курсор в только что добавленное поле, а затем кликнуть вне его, то ничего не происходит; при этом при отправке формы оно валидируется. Также, если поставить курсор в исходное поле, а затем кликнуть вне его, то валидируется не только оно, но и добавленное."},"comment":{"url":"https://api.github.com/repos/samdark/yii2-cookbook/issues/comments/232355912","html_url":"https://github.com/samdark/yii2-cookbook/issues/129#issuecomment-232355912","issue_url":"https://api.github.com/repos/samdark/yii2-cookbook/issues/129","id":232355912,"user":{"login":"thiagotalma","id":612578,"avatar_url":"https://avatars.githubusercontent.com/u/612578?v=3","gravatar_id":"","url":"https://api.github.com/users/thiagotalma","html_url":"https://github.com/thiagotalma","followers_url":"https://api.github.com/users/thiagotalma/followers","following_url":"https://api.github.com/users/thiagotalma/following{/other_user}","gists_url":"https://api.github.com/users/thiagotalma/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagotalma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagotalma/subscriptions","organizations_url":"https://api.github.com/users/thiagotalma/orgs","repos_url":"https://api.github.com/users/thiagotalma/repos","events_url":"https://api.github.com/users/thiagotalma/events{/privacy}","received_events_url":"https://api.github.com/users/thiagotalma/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T13:33:21Z","updated_at":"2016-07-13T13:33:21Z","body":"This is an international collaborative project (like most open source projects).\r\n\r\nPlease use the http://translate.google.com and rewrite the issue in English."}}
{"actor":{"display_login":"thiagotalma"}}