jcchavezs / cmb2-conditionals

Plugin to relate fields in a CMB2 metabox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gutenberg Compatibility

JoeHana opened this issue · comments

Gutenberg is coming soon and it seems like the Conditionals Functionality is not given for Metaboxes where Gutenberg is active. I've tried to modify the JS to init on #editor (in addition to #post) but for some reason that doesn't help. I checked the markup and found that there are of course many differences between a metabox loaded within the classic ui and one loaded within gutenberg, but still couldn't spot the part where this might be an issue. For example the #post id was for a form element but the #editor id gets applied to a basic div - not sure if this is the difference since I couldn't spot anything in the JS.

Do you maybe know what the issue might be?