Skip to content

Commit

Permalink
Restore the ability to submit review form.
Browse files Browse the repository at this point in the history
  • Loading branch information
pszczesniak committed Jun 5, 2023
1 parent 584fe7f commit d6014cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@ckeditor/ckeditor5-list": "^35.3.1",
"@ckeditor/ckeditor5-markdown-gfm": "^35.3.1",
"@ckeditor/ckeditor5-mention": "^35.3.1",
"@ckeditor/ckeditor5-mermaid": "ckeditor/ckeditor5-mermaid#v0.0.2",
"@ckeditor/ckeditor5-mermaid": "ckeditor/ckeditor5-mermaid",
"@ckeditor/ckeditor5-paragraph": "^35.3.1",
"@ckeditor/ckeditor5-paste-from-office": "^35.3.1",
"@ckeditor/ckeditor5-remove-format": "^35.3.1",
Expand Down
2 changes: 1 addition & 1 deletion src/app/editor/setupmixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const SetupMixin = {
// Setup listeners for submit buttons.
{
this.domManipulator.addEventListener( 'button[type="submit"]', 'click', ( ev, button ) => {
if ( button.closest( 'form' ) === form ) {
if ( ( button.closest( 'form' ) === form ) || button.form === form ) {
// We want to play safe here an not allow the form to be posted if there is any error in the synchronization.
try {
syncOnSubmit( this );
Expand Down

0 comments on commit d6014cb

Please sign in to comment.