Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
modify useformwrapper to use core/buttons as well
  • Loading branch information
CGastrell committed Nov 28, 2025
commit c7684da933b77d673645163cc0ef92ac48c73260
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ export default function useFormWrapper( { attributes, clientId, name } ) {
clientId,
createBlock( FORM_BLOCK_NAME, {}, [
createBlock( name, attributes, getBlocks( clientId ) ),
createBlock( 'jetpack/button', {
text: __( 'Submit', 'jetpack-forms' ),
element: 'button',
lock: { remove: true },
} ),
createBlock( 'core/buttons', { lock: { remove: true } }, [
createBlock( 'core/button', {
text: __( 'Submit', 'jetpack-forms' ),
type: 'submit',
tagName: 'button',
className: 'wp-block-jetpack-button jetpack-form-submit-button',
} ),
] ),
] )
);
}
Expand Down