{"action":"created","issue":{"url":"https://api.github.com/repos/cibernox/ember-native-dom-helpers/issues/120","repository_url":"https://api.github.com/repos/cibernox/ember-native-dom-helpers","labels_url":"https://api.github.com/repos/cibernox/ember-native-dom-helpers/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/cibernox/ember-native-dom-helpers/issues/120/comments","events_url":"https://api.github.com/repos/cibernox/ember-native-dom-helpers/issues/120/events","html_url":"https://github.com/cibernox/ember-native-dom-helpers/issues/120","id":276675806,"number":120,"title":"Clicking on disabled input checkbox modify checked value","user":{"login":"livet01","id":2326719,"avatar_url":"https://avatars2.githubusercontent.com/u/2326719?v=4","gravatar_id":"","url":"https://api.github.com/users/livet01","html_url":"https://github.com/livet01","followers_url":"https://api.github.com/users/livet01/followers","following_url":"https://api.github.com/users/livet01/following{/other_user}","gists_url":"https://api.github.com/users/livet01/gists{/gist_id}","starred_url":"https://api.github.com/users/livet01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livet01/subscriptions","organizations_url":"https://api.github.com/users/livet01/orgs","repos_url":"https://api.github.com/users/livet01/repos","events_url":"https://api.github.com/users/livet01/events{/privacy}","received_events_url":"https://api.github.com/users/livet01/received_events","type":"User","site_admin":false},"labels":[{"id":541176866,"url":"https://api.github.com/repos/cibernox/ember-native-dom-helpers/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-11-24T17:52:09Z","updated_at":"2017-11-27T11:00:17Z","closed_at":null,"author_association":"NONE","body":"I create a component `my-input-component.hbs`:\r\n```handlebars\r\n<input type=\"checkbox\"\r\n   checked={{checked}}\r\n   disabled={{disabled}}>\r\n```\r\nand I add a integration test:\r\n```javascript\r\nimport { click, find } from 'ember-native-dom-helpers';\r\n//...\r\ntest('disabled state', async function(assert) {\r\n   await render(hbs`{{my-input-component disabled=true checked=false}}`);\r\n   assert.notOk(find('input[type=\"checkbox\"]').checked);\r\n\r\n   await click('input[type=\"checkbox\"]');\r\n   assert.notOk(find('input[type=\"checkbox\"]').checked);\r\n});\r\n```\r\nThe second `assert.notOk` fails, `find('input[type=\"checkbox\"]').checked` returns true.\r\n\r\nIf I replace `click` helper by something like that, it's working:\r\n```javascript\r\nEmber.run(() => document.querySelector('input[type=\"checkbox\"]').click());\r\n```\r\nDo you have any idea about why `click` has this behaviour? Thanks."},"comment":{"url":"https://api.github.com/repos/cibernox/ember-native-dom-helpers/issues/comments/347148533","html_url":"https://github.com/cibernox/ember-native-dom-helpers/issues/120#issuecomment-347148533","issue_url":"https://api.github.com/repos/cibernox/ember-native-dom-helpers/issues/120","id":347148533,"user":{"login":"livet01","id":2326719,"avatar_url":"https://avatars2.githubusercontent.com/u/2326719?v=4","gravatar_id":"","url":"https://api.github.com/users/livet01","html_url":"https://github.com/livet01","followers_url":"https://api.github.com/users/livet01/followers","following_url":"https://api.github.com/users/livet01/following{/other_user}","gists_url":"https://api.github.com/users/livet01/gists{/gist_id}","starred_url":"https://api.github.com/users/livet01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livet01/subscriptions","organizations_url":"https://api.github.com/users/livet01/orgs","repos_url":"https://api.github.com/users/livet01/repos","events_url":"https://api.github.com/users/livet01/events{/privacy}","received_events_url":"https://api.github.com/users/livet01/received_events","type":"User","site_admin":false},"created_at":"2017-11-27T11:00:17Z","updated_at":"2017-11-27T11:00:17Z","author_association":"NONE","body":"Bug is here on Safari (so webkit) and not here on Edge."}}
{"actor":{"display_login":"livet01"}}