I found a useful topic for this issue, however I've workaroud & found a solution myself by editing conditional-logic.js file
Hope you'll fix this issue so that we don't need to wrap anything 😉
/**
* Visible field or entire meta box
*
* @param Element element Element Selector
*
* @return void
*/
function applyVisible($element)
{
// Element is a Meta Box. Show entire Meta Box
if ($element.hasClass('postbox')) {
$element.show().attr('data-visible', 'visible');
return;
}
// Element is a Field. Find the field wrapper and show.
if ($element.closest('.rwmb-field').length) {
if ( $element.closest( '.rwmb-field' ).closest( '.rwmb-group-wrapper' ).length ) {
$element.closest( '.rwmb-field' ).closest( '.rwmb-group-wrapper' ).show().attr('data-visible', 'visible');
return;
} else {
$element.closest( '.rwmb-field' ).show().attr('data-visible', 'visible');
return;
}
}
$element.show();
}
/**
* Hide field or entire meta box
* @param Element element Element Selector
*
* @return void
*/
function applyHidden($element)
{
if ($element.hasClass('postbox')) {
$element.hide().attr('data-visible', 'hidden');
return;
}
if ($element.closest('.rwmb-field').length) {
if ( $element.closest( '.rwmb-field' ).closest( '.rwmb-group-wrapper' ).length ) {
$element.closest( '.rwmb-field' ).closest( '.rwmb-group-wrapper' ).hide().attr('data-visible', 'hidden');
return;
} else {
$element.closest('.rwmb-field').hide().attr('data-visible', 'hidden');
return;
}
}
$element.hide();
}
Best Regards