Closed bobbingwide closed 2 years ago
To test #8 we'll change the registration of the Contact form block so that Gutenberg enqueues the styles. We'll then have to investigate how to change the build to produce multiple scripts and see how that affects the overall behaviour of the site.
Changing the edit: method to return using parentheses rather than square brackets seems to resolve the annoying react message about duplicate keys. It'd be nice to know why... but I'll check in this version anyway.
The Contact form already works with Gutenberg v4.0.0 but the following changes could be made anyway.
The Contact form block is now delivered in oik. See https://github.com/bobbingwide/oik/issues/138
The [bw_contact_form] shortcode displays a simple HTML form. We would like to be able to use the existing logic in a dynamic block.
Requirement
Proposed solution