Steps to reproduce:

* Apply attached patch. It contains a new widget for entity_browser_example 'nodes' widget
* Install entity_browser_example
* Visit node/add/entity_browser_test
* Open NODES fieldset and click on "Select entities"
* Change the select option to "Create node"
* Change the select option to "Node listing". BOOOM!

Comments

jonhattan created an issue. See original summary.

jonhattan’s picture

slashrsm’s picture

Title: IEF widget tries (and fails) to validate when moving between widgets » IEF shouldn't be validated when changing to a new widget

This sounds like a validation issue. Change of a widget is form submit which results in validation. proper use of #limit_validation_errors on widget selector dropdown should fix this.

jonhattan’s picture

@slashrsm thanks! that was very easy! https://github.com/drupal-media/entity_browser/pull/82

jonhattan’s picture

Status: Active » Needs review
slashrsm’s picture

Status: Needs review » Fixed

Merged. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.