Skip to content

Datepicker always wrapped in cmb2-element div #527

@JJJ

Description

@JJJ

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.

The following code in cmb2.js is the culprit:

        // Wrap date picker in class to narrow the scope of jQuery UI CSS and prevent conflicts
        $id( 'ui-datepicker-div' ).wrap('<div class="cmb2-element" />');

I'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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions