We have the situation that there are multiple form elements in the DOM.

The following TODO is present in the code:

// TODO: This fails if there are multiple forms.
var $form = $('form').first();

In our case the other form comes first and hence, the functionality is broken. We fixed this by setting $form as follows:

var $form = $('.field--widget-yoast-seo-widget').closest('form');

This might not be the best way, but at least we at least have the functionality working again.

CommentFileSizeAuthor
#2 3480633-2.patch483 bytesmarty2081

Comments

marty2081 created an issue. See original summary.

marty2081’s picture

StatusFileSize
new483 bytes

Here is the patch

marty2081’s picture

Issue summary: View changes
Status: Active » Needs review