{"action":"opened","issue":{"url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/943","labels_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/943/labels{/name}","comments_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/943/comments","events_url":"https://api.github.com/repos/Eonasdan/bootstrap-datetimepicker/issues/943/events","html_url":"https://github.com/Eonasdan/bootstrap-datetimepicker/issues/943","id":64430751,"number":943,"title":"options specified in a field affect following ones?","user":{"login":"kakipo","id":2214179,"avatar_url":"https://avatars.githubusercontent.com/u/2214179?v=3","gravatar_id":"","url":"https://api.github.com/users/kakipo","html_url":"https://github.com/kakipo","followers_url":"https://api.github.com/users/kakipo/followers","following_url":"https://api.github.com/users/kakipo/following{/other_user}","gists_url":"https://api.github.com/users/kakipo/gists{/gist_id}","starred_url":"https://api.github.com/users/kakipo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kakipo/subscriptions","organizations_url":"https://api.github.com/users/kakipo/orgs","repos_url":"https://api.github.com/users/kakipo/repos","events_url":"https://api.github.com/users/kakipo/events{/privacy}","received_events_url":"https://api.github.com/users/kakipo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-26T03:18:43Z","updated_at":"2015-03-26T03:18:43Z","closed_at":null,"body":"I have multiple datepicker fields, and one of them is specified  `viewMode` as `years` via `data-date-view-mode` attribute. \r\n\r\n```\r\n<input type=\"text\" class=\"form-control js-picker\" />\r\n<input type=\"text\" class=\"form-control js-picker\" data-date-view-mode='years' />\r\n<input type=\"text\" class=\"form-control js-picker\" />\r\n```\r\n\r\nI thought the last one's `viewMode` would be `days` as default, but actually it was `years`.\r\n\r\nIs this intended or just a bug?\r\n\r\nHere's a fiddle.\r\n[datetime picker base master - JSFiddle](http://jsfiddle.net/kakipo/0Ltv25o8/634/)\r\n\r\n- bootstrap-datetimepicker: 4.7.14\r\n- jquery: 2.1.0\r\n- bootstrap: 3.2.0\r\n\r\nYou can workaround by applying `datetimepicker()` for each fields, but it may cause performance issues.\r\n\r\n```\r\n// workaround\r\n$('.js-picker').each(function(){\r\n   $(this).datetimepicker();\r\n});\r\n```\r\n\r\n"}}