{"action":"created","issue":{"url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/527","labels_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/527/labels{/name}","comments_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/527/comments","events_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/527/events","html_url":"https://github.com/WebDevStudios/CMB2/issues/527","id":117200484,"number":527,"title":"Datepicker always wrapped in cmb2-element div","user":{"login":"johnjamesjacoby","id":88951,"avatar_url":"https://avatars.githubusercontent.com/u/88951?v=3","gravatar_id":"","url":"https://api.github.com/users/johnjamesjacoby","html_url":"https://github.com/johnjamesjacoby","followers_url":"https://api.github.com/users/johnjamesjacoby/followers","following_url":"https://api.github.com/users/johnjamesjacoby/following{/other_user}","gists_url":"https://api.github.com/users/johnjamesjacoby/gists{/gist_id}","starred_url":"https://api.github.com/users/johnjamesjacoby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnjamesjacoby/subscriptions","organizations_url":"https://api.github.com/users/johnjamesjacoby/orgs","repos_url":"https://api.github.com/users/johnjamesjacoby/repos","events_url":"https://api.github.com/users/johnjamesjacoby/events{/privacy}","received_events_url":"https://api.github.com/users/johnjamesjacoby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-16T19:33:08Z","updated_at":"2015-11-21T03:23:03Z","closed_at":null,"body":"The WP Event Calendar plugin uses the same jQuery UI Datepicker library as CMB2. It looks like CMB2 doesn't just wrap itself, but all datepickers, resulting in broken styling when both are active.\r\n\r\nThe following code in `cmb2.js` is the culprit:\r\n```\r\n\t\t// Wrap date picker in class to narrow the scope of jQuery UI CSS and prevent conflicts\r\n\t\t$id( 'ui-datepicker-div' ).wrap('<div class=\"cmb2-element\" />');\r\n```\r\n\r\nI'm unsure if there's a way to namespace your own datepickers, but that would circumvent the issue and prevent the conflict this code was designed to prevent (but doesn't really.)"},"comment":{"url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/comments/158583213","html_url":"https://github.com/WebDevStudios/CMB2/issues/527#issuecomment-158583213","issue_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/527","id":158583213,"user":{"login":"jtsternberg","id":1098900,"avatar_url":"https://avatars.githubusercontent.com/u/1098900?v=3","gravatar_id":"","url":"https://api.github.com/users/jtsternberg","html_url":"https://github.com/jtsternberg","followers_url":"https://api.github.com/users/jtsternberg/followers","following_url":"https://api.github.com/users/jtsternberg/following{/other_user}","gists_url":"https://api.github.com/users/jtsternberg/gists{/gist_id}","starred_url":"https://api.github.com/users/jtsternberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtsternberg/subscriptions","organizations_url":"https://api.github.com/users/jtsternberg/orgs","repos_url":"https://api.github.com/users/jtsternberg/repos","events_url":"https://api.github.com/users/jtsternberg/events{/privacy}","received_events_url":"https://api.github.com/users/jtsternberg/received_events","type":"User","site_admin":false},"created_at":"2015-11-21T03:23:03Z","updated_at":"2015-11-21T03:23:03Z","body":"Just did some testing with a vanilla datepicker instantiation, and the aforementioned branch solves the issue."}}