{"action":"created","issue":{"url":"https://api.github.com/repos/developit/preact-compat/issues/234","repository_url":"https://api.github.com/repos/developit/preact-compat","labels_url":"https://api.github.com/repos/developit/preact-compat/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/developit/preact-compat/issues/234/comments","events_url":"https://api.github.com/repos/developit/preact-compat/issues/234/events","html_url":"https://github.com/developit/preact-compat/issues/234","id":188481070,"number":234,"title":"Breaking in combination with Material UI","user":{"login":"linde12","id":3235069,"avatar_url":"https://avatars.githubusercontent.com/u/3235069?v=3","gravatar_id":"","url":"https://api.github.com/users/linde12","html_url":"https://github.com/linde12","followers_url":"https://api.github.com/users/linde12/followers","following_url":"https://api.github.com/users/linde12/following{/other_user}","gists_url":"https://api.github.com/users/linde12/gists{/gist_id}","starred_url":"https://api.github.com/users/linde12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linde12/subscriptions","organizations_url":"https://api.github.com/users/linde12/orgs","repos_url":"https://api.github.com/users/linde12/repos","events_url":"https://api.github.com/users/linde12/events{/privacy}","received_events_url":"https://api.github.com/users/linde12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":47,"created_at":"2016-11-10T11:12:45Z","updated_at":"2016-12-06T14:04:06Z","closed_at":null,"body":"Hello!\r\n\r\nI am trying to migrate a project from that uses React to Preact.\r\n\r\nThe project uses the Material UI library by CallEmAll and it doesn't seem to play nice with Preact: Some of their components(like EnhancedButton), call `event.persist()` on a `SyntheticEvent`. Instead in Preact this event is a `FocusEvent` and does not have the `.persist()` method on it. The result is that Material UI buttons(and probably other components) don't work.\r\n\r\nDoes anyone know how this could be fixed? Since out whole application is built using Material-UI it is crucial for it to work, otherwise we're unable to migrate.\r\n\r\nThe `SyntheticEvent` docs doesn't say much about `.persist()`(see: https://facebook.github.io/react/docs/events.html) so it's difficult to understand why it's needed and how it could be fixed.\r\n\r\nOtherwise, so far, everything else in the migration seems to be working. The components i can see without pressing buttons seem to be properly rendered and work the same way as they would with React."},"comment":{"url":"https://api.github.com/repos/developit/preact-compat/issues/comments/265157069","html_url":"https://github.com/developit/preact-compat/issues/234#issuecomment-265157069","issue_url":"https://api.github.com/repos/developit/preact-compat/issues/234","id":265157069,"user":{"login":"cia48621793","id":11735070,"avatar_url":"https://avatars.githubusercontent.com/u/11735070?v=3","gravatar_id":"","url":"https://api.github.com/users/cia48621793","html_url":"https://github.com/cia48621793","followers_url":"https://api.github.com/users/cia48621793/followers","following_url":"https://api.github.com/users/cia48621793/following{/other_user}","gists_url":"https://api.github.com/users/cia48621793/gists{/gist_id}","starred_url":"https://api.github.com/users/cia48621793/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cia48621793/subscriptions","organizations_url":"https://api.github.com/users/cia48621793/orgs","repos_url":"https://api.github.com/users/cia48621793/repos","events_url":"https://api.github.com/users/cia48621793/events{/privacy}","received_events_url":"https://api.github.com/users/cia48621793/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T14:04:06Z","updated_at":"2016-12-06T14:04:06Z","body":"＠developit No, it was hardcoded in src/app/app.js. Comment out that ReactPerf `require` and everything goes in the right direction."}}
{"actor":{"display_login":"cia48621793"}}