{"action":"created","issue":{"url":"https://api.github.com/repos/bencripps/react-redux-grid/issues/8","repository_url":"https://api.github.com/repos/bencripps/react-redux-grid","labels_url":"https://api.github.com/repos/bencripps/react-redux-grid/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/bencripps/react-redux-grid/issues/8/comments","events_url":"https://api.github.com/repos/bencripps/react-redux-grid/issues/8/events","html_url":"https://github.com/bencripps/react-redux-grid/issues/8","id":150107026,"number":8,"title":"Grid Menu not Showing","user":{"login":"leonfs","id":654615,"avatar_url":"https://avatars.githubusercontent.com/u/654615?v=3","gravatar_id":"","url":"https://api.github.com/users/leonfs","html_url":"https://github.com/leonfs","followers_url":"https://api.github.com/users/leonfs/followers","following_url":"https://api.github.com/users/leonfs/following{/other_user}","gists_url":"https://api.github.com/users/leonfs/gists{/gist_id}","starred_url":"https://api.github.com/users/leonfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonfs/subscriptions","organizations_url":"https://api.github.com/users/leonfs/orgs","repos_url":"https://api.github.com/users/leonfs/repos","events_url":"https://api.github.com/users/leonfs/events{/privacy}","received_events_url":"https://api.github.com/users/leonfs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bencripps/react-redux-grid/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-21T15:23:38Z","updated_at":"2016-04-22T15:31:14Z","closed_at":"2016-04-22T15:31:14Z","body":"I tried to use the Grid Menu (by including the GRID_ACTIONS object into the plugins object).\r\n\r\n```\r\nGRID_ACTIONS: {\r\n        iconCls: 'action-icon',\r\n        menu: [\r\n            {\r\n                text: 'Delete',\r\n                EVENT_HANDLER: () => {\r\n                    alert('hi');\r\n                }\r\n            }\r\n        ]\r\n    }\r\n```\r\n\r\nI can see the icon, but when I click on it nothing happens. No menu is displayed (as the one displayed on the demo)\r\n\r\nSomething I noticed is that I have an UNMET PEER dependency when I installed react-redux-grid. Maybe that's connected to the problem?\r\n\r\n`\r\n--> UNMET PEER DEPENDENCY history@^1.17.0\r\n`"},"comment":{"url":"https://api.github.com/repos/bencripps/react-redux-grid/issues/comments/213475736","html_url":"https://github.com/bencripps/react-redux-grid/issues/8#issuecomment-213475736","issue_url":"https://api.github.com/repos/bencripps/react-redux-grid/issues/8","id":213475736,"user":{"login":"leonfs","id":654615,"avatar_url":"https://avatars.githubusercontent.com/u/654615?v=3","gravatar_id":"","url":"https://api.github.com/users/leonfs","html_url":"https://github.com/leonfs","followers_url":"https://api.github.com/users/leonfs/followers","following_url":"https://api.github.com/users/leonfs/following{/other_user}","gists_url":"https://api.github.com/users/leonfs/gists{/gist_id}","starred_url":"https://api.github.com/users/leonfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonfs/subscriptions","organizations_url":"https://api.github.com/users/leonfs/orgs","repos_url":"https://api.github.com/users/leonfs/repos","events_url":"https://api.github.com/users/leonfs/events{/privacy}","received_events_url":"https://api.github.com/users/leonfs/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T15:31:14Z","updated_at":"2016-04-22T15:31:14Z","body":"So.. I basically debugged the plugin. \r\n\r\nAnd I found the problem to be in the following function:\r\n```\r\nexport const getUniqueItems = (items) => {\r\n    const keys = items.map((obj) => { return obj.key; });\r\n    const unique = items.filter((ob, i) => { return keys.indexOf(ob.key) === i; });\r\n    return unique;\r\n};\r\n```\r\n\r\nMy menu array had objects without 'key' property. I basically copied the example from the demo folder as actually there is no documentation on the Readme about the menu plugin. But the demo folder is missing the key property. \r\n\r\nCheers."}}