{"action":"created","issue":{"url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1652","labels_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1652/labels{/name}","comments_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1652/comments","events_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1652/events","html_url":"https://github.com/eternicode/bootstrap-datepicker/issues/1652","id":114777106,"number":1652,"title":"Datepicker comes open in wrong container when using on input-group","user":{"login":"JarJak","id":4981490,"avatar_url":"https://avatars.githubusercontent.com/u/4981490?v=3","gravatar_id":"","url":"https://api.github.com/users/JarJak","html_url":"https://github.com/JarJak","followers_url":"https://api.github.com/users/JarJak/followers","following_url":"https://api.github.com/users/JarJak/following{/other_user}","gists_url":"https://api.github.com/users/JarJak/gists{/gist_id}","starred_url":"https://api.github.com/users/JarJak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JarJak/subscriptions","organizations_url":"https://api.github.com/users/JarJak/orgs","repos_url":"https://api.github.com/users/JarJak/repos","events_url":"https://api.github.com/users/JarJak/events{/privacy}","received_events_url":"https://api.github.com/users/JarJak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-03T09:40:57Z","updated_at":"2015-11-03T10:25:40Z","closed_at":"2015-11-03T10:06:11Z","body":"Works in sandbox:\r\nhttps://eternicode.github.io/bootstrap-datepicker/?markup=component&format=&weekStart=&startDate=&endDate=&startView=0&minViewMode=0&todayBtn=false&clearBtn=false&language=en&orientation=auto&multidate=&multidateSeparator=&keyboardNavigation=on&forceParse=on#sandbox\r\n\r\nBut here it doesn't:\r\nhttp://jsfiddle.net/sc8uh1ej/"},"comment":{"url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/comments/153309101","html_url":"https://github.com/eternicode/bootstrap-datepicker/issues/1652#issuecomment-153309101","issue_url":"https://api.github.com/repos/eternicode/bootstrap-datepicker/issues/1652","id":153309101,"user":{"login":"Azaret","id":1201743,"avatar_url":"https://avatars.githubusercontent.com/u/1201743?v=3","gravatar_id":"","url":"https://api.github.com/users/Azaret","html_url":"https://github.com/Azaret","followers_url":"https://api.github.com/users/Azaret/followers","following_url":"https://api.github.com/users/Azaret/following{/other_user}","gists_url":"https://api.github.com/users/Azaret/gists{/gist_id}","starred_url":"https://api.github.com/users/Azaret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azaret/subscriptions","organizations_url":"https://api.github.com/users/Azaret/orgs","repos_url":"https://api.github.com/users/Azaret/repos","events_url":"https://api.github.com/users/Azaret/events{/privacy}","received_events_url":"https://api.github.com/users/Azaret/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T10:25:40Z","updated_at":"2015-11-03T10:25:40Z","body":"the sandbox explicitly instantiate on the input:\r\n```js\r\n$('#sandbox-container input').datepicker({\r\n...\r\n});\r\n```\r\n\r\nIf you want to bind your icon to open the picker, you should do it apart: http://jsfiddle.net/sc8uh1ej/3/\r\n```js\r\n$(document).ready(function(){\r\n    $('.datepicker input').datepicker({\r\n        //..\r\n    });\r\n    $('.datepicker .input-group-addon').on('click', function () {\r\n        $(this).closest('.datepicker').find('input').datepicker('show');\r\n    });\r\n});\r\n```"}}