diff -u b/core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php b/core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php --- b/core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php +++ b/core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php @@ -258,7 +258,7 @@ '#states' => [ 'visible' => [ ':input[name="settings[handler_settings][sort][field]"]' => [ - '!value' => '_none' + '!value' => '_none', ], ], ], @@ -266,7 +266,7 @@ if ($entity_type->hasKey('bundle')) { $form['sort']['settings']['direction']['#states']['visible'][] = [ ':input[name^="settings[handler_settings][target_bundles]["]' => [ - 'checked' => TRUE + 'checked' => TRUE, ] ]; }