{"action":"closed","issue":{"url":"https://api.github.com/repos/lorenzofox3/Smart-Table/issues/255","labels_url":"https://api.github.com/repos/lorenzofox3/Smart-Table/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/lorenzofox3/Smart-Table/issues/255/comments","events_url":"https://api.github.com/repos/lorenzofox3/Smart-Table/issues/255/events","html_url":"https://github.com/lorenzofox3/Smart-Table/issues/255","id":52148250,"number":255,"title":"Select row bug when controller is resetted","user":{"login":"raphaelmerx","id":5139869,"avatar_url":"https://avatars.githubusercontent.com/u/5139869?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelmerx","html_url":"https://github.com/raphaelmerx","followers_url":"https://api.github.com/users/raphaelmerx/followers","following_url":"https://api.github.com/users/raphaelmerx/following{/other_user}","gists_url":"https://api.github.com/users/raphaelmerx/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelmerx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelmerx/subscriptions","organizations_url":"https://api.github.com/users/raphaelmerx/orgs","repos_url":"https://api.github.com/users/raphaelmerx/repos","events_url":"https://api.github.com/users/raphaelmerx/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelmerx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-16T18:20:14Z","updated_at":"2015-08-05T04:56:18Z","closed_at":"2015-08-05T04:56:18Z","body":"Hello,\r\n\r\nThe smart-table with \"select one row\" allows the user to select a second row when switching to a different section, and then coming back to the table.\r\n\r\nTo repro, use [this plunk] (http://plnkr.co/edit/IAbn3i3w2PpgO7RslBGH?p=preview), and:\r\n* Select a row\r\n* Click on \"Section 2\"\r\n* Go back to section 1\r\n* Select another row. It gets selected!\r\n\r\nThe cause is that the `stTableController` restarts, and `lastSelected` is `undefined` when the controller is reset, even though one row is selected.\r\n\r\nI haven't found a good solution yet, but will open a PR if I find one I'm satisfied with.\r\n\r\nThanks a lot for this module by the way!"}}