{"action":"closed","issue":{"url":"https://api.github.com/repos/konsoletyper/teavm/issues/99","labels_url":"https://api.github.com/repos/konsoletyper/teavm/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/konsoletyper/teavm/issues/99/comments","events_url":"https://api.github.com/repos/konsoletyper/teavm/issues/99/events","html_url":"https://github.com/konsoletyper/teavm/issues/99","id":69564961,"number":99,"title":"HTML Select component - onchange event","user":{"login":"stevepugh99","id":1632773,"avatar_url":"https://avatars.githubusercontent.com/u/1632773?v=3","gravatar_id":"","url":"https://api.github.com/users/stevepugh99","html_url":"https://github.com/stevepugh99","followers_url":"https://api.github.com/users/stevepugh99/followers","following_url":"https://api.github.com/users/stevepugh99/following{/other_user}","gists_url":"https://api.github.com/users/stevepugh99/gists{/gist_id}","starred_url":"https://api.github.com/users/stevepugh99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevepugh99/subscriptions","organizations_url":"https://api.github.com/users/stevepugh99/orgs","repos_url":"https://api.github.com/users/stevepugh99/repos","events_url":"https://api.github.com/users/stevepugh99/events{/privacy}","received_events_url":"https://api.github.com/users/stevepugh99/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-04-20T11:20:56Z","updated_at":"2015-04-21T09:34:19Z","closed_at":"2015-04-21T09:34:19Z","body":"Apologies if this is a known issue or if I'm doing it wrong, but it looks like a bug as far as I can tell:\r\nThe problem is with detecting the change event when a HTML select component is changed.\r\n\r\nI have a simple HTML Select component:\r\n\r\n            <select id=\"config-select\">\r\n            <option id=\"configOptionDummy1\" value=\"d1\">Dummy1</option>\r\n            <option id=\"configOptionDummy2\" value=\"d2\">Dummy2</option>\r\n            </select>\r\n\r\nMy java code for detecting the change:\r\n\r\n        private static HTMLSelectElement configSelect = (HTMLSelectElement) document.getElementById(\"config-select\");\r\n        .....\r\n        configSelect.addEventListener(\"change\", new EventListener() {\r\n            @Override\r\n            public void handleEvent(Event event) {\r\n                System.out.println(\"select \" + event);\r\n            }\r\n        });\r\n\r\nWhat happens is, at runtime, when the the selection is changed, there is a javascript error of the form:\r\n        TypeError: $this.QG is undefined\r\n"}}