{"action":"created","issue":{"url":"https://api.github.com/repos/codeborne/selenide/issues/165","labels_url":"https://api.github.com/repos/codeborne/selenide/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/codeborne/selenide/issues/165/comments","events_url":"https://api.github.com/repos/codeborne/selenide/issues/165/events","html_url":"https://github.com/codeborne/selenide/issues/165","id":60147794,"number":165,"title":"When fastSetValue=true, the value set to textarea does not trigger \"input\" event","user":{"login":"dmak","id":366965,"avatar_url":"https://avatars.githubusercontent.com/u/366965?v=3","gravatar_id":"","url":"https://api.github.com/users/dmak","html_url":"https://github.com/dmak","followers_url":"https://api.github.com/users/dmak/followers","following_url":"https://api.github.com/users/dmak/following{/other_user}","gists_url":"https://api.github.com/users/dmak/gists{/gist_id}","starred_url":"https://api.github.com/users/dmak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmak/subscriptions","organizations_url":"https://api.github.com/users/dmak/orgs","repos_url":"https://api.github.com/users/dmak/repos","events_url":"https://api.github.com/users/dmak/events{/privacy}","received_events_url":"https://api.github.com/users/dmak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-06T19:35:36Z","updated_at":"2015-03-06T21:23:49Z","closed_at":null,"body":"When running Selenide v2.16 with `-Dselenide.fastSetValue=true`, the value set to `<textarea>` does not trigger `input` event. Web page contains JQuery.\r\n\r\nJavaScript code of the page:\r\n```js\r\n$('#panel textarea').on('input', changeListener); // this listener is never triggered\r\n```\r\nJava code:\r\n```java\r\n$(\"#panel textarea\").val(\"Some value\"); // value is visible, but event is not triggered\r\n```\r\nLooking at `AbstractSelenideElement#setValue()` I see that if jQuery is present, events are triggered explicitly. How then the case when no jQuery is present works (lines 364-365) as it does not trigger any events except `onchange`?"},"comment":{"url":"https://api.github.com/repos/codeborne/selenide/issues/comments/77638554","html_url":"https://github.com/codeborne/selenide/issues/165#issuecomment-77638554","issue_url":"https://api.github.com/repos/codeborne/selenide/issues/165","id":77638554,"user":{"login":"asolntsev","id":279773,"avatar_url":"https://avatars.githubusercontent.com/u/279773?v=3","gravatar_id":"","url":"https://api.github.com/users/asolntsev","html_url":"https://github.com/asolntsev","followers_url":"https://api.github.com/users/asolntsev/followers","following_url":"https://api.github.com/users/asolntsev/following{/other_user}","gists_url":"https://api.github.com/users/asolntsev/gists{/gist_id}","starred_url":"https://api.github.com/users/asolntsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asolntsev/subscriptions","organizations_url":"https://api.github.com/users/asolntsev/orgs","repos_url":"https://api.github.com/users/asolntsev/repos","events_url":"https://api.github.com/users/asolntsev/events{/privacy}","received_events_url":"https://api.github.com/users/asolntsev/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T21:23:49Z","updated_at":"2015-03-06T21:23:49Z","body":"If your application depends on javascript events (like `keyup`, `keydown`, `keypress`, `input` etc), it's recommended to use method `$.sendKeys()` instead of `$.val()`. Otherwise it's hard to guarantee that all the required events are triggered exactly as in real browser. \r\n\r\nIt seems that the mentioned code in `AbstractSelenideElement#setValue() ` for triggering events doesn't work pretty well. I thought about removing this code in the next Selenide version."}}