{"action":"closed","issue":{"url":"https://api.github.com/repos/callemall/material-ui/issues/4195","repository_url":"https://api.github.com/repos/callemall/material-ui","labels_url":"https://api.github.com/repos/callemall/material-ui/issues/4195/labels{/name}","comments_url":"https://api.github.com/repos/callemall/material-ui/issues/4195/comments","events_url":"https://api.github.com/repos/callemall/material-ui/issues/4195/events","html_url":"https://github.com/callemall/material-ui/issues/4195","id":153598218,"number":4195,"title":"[Autocomplete] Server rendering broken because of property filter","user":{"login":"AJIh","id":6063915,"avatar_url":"https://avatars.githubusercontent.com/u/6063915?v=3","gravatar_id":"","url":"https://api.github.com/users/AJIh","html_url":"https://github.com/AJIh","followers_url":"https://api.github.com/users/AJIh/followers","following_url":"https://api.github.com/users/AJIh/following{/other_user}","gists_url":"https://api.github.com/users/AJIh/gists{/gist_id}","starred_url":"https://api.github.com/users/AJIh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AJIh/subscriptions","organizations_url":"https://api.github.com/users/AJIh/orgs","repos_url":"https://api.github.com/users/AJIh/repos","events_url":"https://api.github.com/users/AJIh/events{/privacy}","received_events_url":"https://api.github.com/users/AJIh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/callemall/material-ui/labels/Bug","name":"Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"oliviertassinari","id":3165635,"avatar_url":"https://avatars.githubusercontent.com/u/3165635?v=3","gravatar_id":"","url":"https://api.github.com/users/oliviertassinari","html_url":"https://github.com/oliviertassinari","followers_url":"https://api.github.com/users/oliviertassinari/followers","following_url":"https://api.github.com/users/oliviertassinari/following{/other_user}","gists_url":"https://api.github.com/users/oliviertassinari/gists{/gist_id}","starred_url":"https://api.github.com/users/oliviertassinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliviertassinari/subscriptions","organizations_url":"https://api.github.com/users/oliviertassinari/orgs","repos_url":"https://api.github.com/users/oliviertassinari/repos","events_url":"https://api.github.com/users/oliviertassinari/events{/privacy}","received_events_url":"https://api.github.com/users/oliviertassinari/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-05-07T14:42:42Z","updated_at":"2016-05-22T13:22:54Z","closed_at":"2016-05-22T13:22:54Z","body":"Problem Description\r\n-------------------\r\nI'm using `<Autocomplete>` in my app like this: \r\n\r\n```javascript\r\n      <Toolbar>\r\n        <ToolbarGroup>\r\n          <ToolbarTitle text=\"Editor\" />\r\n          <ToolbarSeparator />\r\n          <AutoComplete\r\n            hintText=\"Search\"\r\n            dataSource={searchResults}\r\n            onUpdateInput={search}\r\n          />\r\n          <IconButton>\r\n            <SearchSVG />\r\n          </IconButton>\r\n        </ToolbarGroup>\r\n      </Toolbar>\r\n```\r\n\r\nThis will produce warning:\r\n\r\n```\r\nwarning.js:44 Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\r\n (client) (searchText, key) {\r\n    return searchTex\r\n (server) (searchText, key) {\r\n\t    return searchTe\r\n```\r\n\r\nServer side:\r\n```html\r\n<input type=\"text\" filter=\"function filter(searchText, key) {\r\n\t    return searchText !== &#x27;&#x27; &amp;&amp; key.indexOf(searchText) !== -1;\r\n\t  }\" autocomplete=\"off\" value=\"\" id=\"undefined-Searchontology-undefined-50753\" style=\"-webkit-tap-highlight-color:rgba(0,0,0,0);padding:0;position:relative;width:100%;height:100%;border:none;outline:none;background-color:rgba(0,0,0,0);color:rgba(0, 0, 0, 0.87);font:inherit;mui-prepared:;\" data-reactid=\"13\"/>\r\n```\r\n\r\nClient Side:\r\n```html\r\n<input type=\"text\" filter=\"function filter(searchText, key) {\r\n    return searchText !== '' &amp;&amp; key.indexOf(searchText) !== -1;\r\n  }\" autocomplete=\"off\" value=\"\" id=\"undefined-Searchontology-undefined-42239\" style=\"-webkit-tap-highlight-color:rgba(0,0,0,0);padding:0;position:relative;width:100%;height:100%;border:none;outline:none;background-color:rgba(0,0,0,0);color:rgba(0, 0, 0, 0.87);font:inherit;mui-prepared:;\" data-reactid=\"13\">\r\n```\r\n\r\nVersions\r\n--------\r\n\r\n- Material-UI: 0.15.0\r\n- React: 15.0.2\r\n- Browser: Chrome 50.0.2661.94 (64-bit)\r\n- Babel: 6.8.0\r\n- Node: 6.1.0\r\n"}}
{"actor":{"display_login":"oliviertassinari"}}