diff --git a/modules/order/src/Plugin/Field/FieldWidget/AdjustmentDefaultWidget.php b/modules/order/src/Plugin/Field/FieldWidget/AdjustmentDefaultWidget.php
index 091cb4ce..ecbc17d4 100644
--- a/modules/order/src/Plugin/Field/FieldWidget/AdjustmentDefaultWidget.php
+++ b/modules/order/src/Plugin/Field/FieldWidget/AdjustmentDefaultWidget.php
@@ -4,6 +4,7 @@ namespace Drupal\commerce_order\Plugin\Field\FieldWidget;
 
 use Drupal\commerce_order\Adjustment;
 use Drupal\commerce_price\Price;
+use Drupal\Component\Utility\Html;
 use Drupal\Core\Field\FieldItemListInterface;
 use Drupal\Core\Field\WidgetBase;
 use Drupal\Core\Form\FormStateInterface;
@@ -42,12 +43,21 @@ class AdjustmentDefaultWidget extends WidgetBase {
       }
     }
 
+    $wrapper_id = Html::getUniqueId(__CLASS__);
+    $element['#prefix'] = '<div id="' . $wrapper_id . '">';
+    $element['#suffix'] = '</div>';
+
+    $type_default_value = ($adjustment) ? $adjustment->getType() : '_none';
     $element['type'] = [
       '#type' => 'select',
       '#title' => $this->t('Type'),
       '#options' => $types,
       '#weight' => 1,
-      '#default_value' => ($adjustment) ? $adjustment->getType() : '_none',
+      '#default_value' => $type_default_value,
+      '#ajax' => [
+        'callback' => [$this, 'ajaxRefresh'],
+        'wrapper' => $wrapper_id,
+      ],
     ];
 
     // If this is being added through the UI, the source ID should be empty,
@@ -64,38 +74,45 @@ class AdjustmentDefaultWidget extends WidgetBase {
       '#value' => ($adjustment) ? $adjustment->isLocked() : TRUE,
     ];
 
-    $states_selector_name = $this->fieldDefinition->getName() . "[$delta][type]";
     $element['definition'] = [
       '#type' => 'container',
       '#weight' => 2,
-      '#states' => [
-        'invisible' => [
-          'select[name="' . $states_selector_name . '"]' => ['value' => '_none'],
-        ],
-      ],
-    ];
-    $element['definition']['label'] = [
-      '#type' => 'textfield',
-      '#title' => $this->t('Label'),
-      '#default_value' => ($adjustment) ? $adjustment->getLabel() : '',
-    ];
-    $element['definition']['amount'] = [
-      '#type' => 'commerce_price',
-      '#title' => t('Amount'),
-      '#default_value' => ($adjustment) ? $adjustment->getAmount()->toArray() : NULL,
-      '#allow_negative' => TRUE,
-      '#states' => [
-        'optional' => [
-          'select[name="' . $states_selector_name . '"]' => ['value' => '_none'],
-        ],
-      ],
-    ];
-    $element['definition']['included'] = [
-      '#type' => 'checkbox',
-      '#title' => t('Included in the base price'),
-      '#default_value' => ($adjustment) ? $adjustment->isIncluded() : FALSE,
     ];
 
+    // Determine if we are processing an AJAX submission.
+    $trigger_element = $form_state->getTriggeringElement();
+    $ajax_submission = preg_match('/adjustments\[([0-9]+)\]\[type\]/', $trigger_element['#name'], $matches);
+    if ($ajax_submission && (int) $matches[1] === $delta) {
+      $type = $trigger_element['#value'];
+    }
+    elseif ($form_state->hasValue(['adjustments', $delta, 'type'])) {
+      $type = $form_state->getValue(['adjustments', $delta, 'type']);
+    }
+    else {
+      $type = $type_default_value;
+    }
+
+    // If the type is set, add the adjustment form.
+    if ($type !== '_none') {
+      $element['definition']['label'] = [
+        '#type' => 'textfield',
+        '#title' => $this->t('Label'),
+        '#default_value' => ($adjustment) ? $adjustment->getLabel() : '',
+      ];
+      $element['definition']['amount'] = [
+        '#type' => 'commerce_price',
+        '#title' => t('Amount'),
+        '#default_value' => ($adjustment) ? $adjustment->getAmount()
+          ->toArray() : NULL,
+        '#allow_negative' => TRUE,
+      ];
+      $element['definition']['included'] = [
+        '#type' => 'checkbox',
+        '#title' => t('Included in the base price'),
+        '#default_value' => ($adjustment) ? $adjustment->isIncluded() : FALSE,
+      ];
+    }
+
     return $element;
   }
 
@@ -127,4 +144,16 @@ class AdjustmentDefaultWidget extends WidgetBase {
     return $values;
   }
 
+  /**
+   * Ajax callback.
+   */
+  public static function ajaxRefresh(&$form, FormStateInterface $form_state) {
+    $trigger_element = $form_state->getTriggeringElement();
+
+    if (preg_match('/adjustments\[([0-9]+)\]\[type\]/', $trigger_element['#name'], $matches)) {
+      $delta = $matches[1];
+      return $form['adjustments']['widget'][$delta];
+    }
+  }
+
 }
diff --git a/modules/order/tests/src/Functional/OrderAdminTest.php b/modules/order/tests/src/Functional/OrderAdminTest.php
index 9fa904df..e1c5ca01 100644
--- a/modules/order/tests/src/Functional/OrderAdminTest.php
+++ b/modules/order/tests/src/Functional/OrderAdminTest.php
@@ -105,11 +105,14 @@ class OrderAdminTest extends OrderBrowserTestBase {
 
     // Use an adjustment that is not locked by default.
     $this->clickLink('Edit');
+
+    $this->getSession()->getPage()->fillField('edit-adjustments-0-type', 'fee');
+    $this->click('#edit-adjustments-add-more');
     $edit = [
-      'adjustments[0][type]' => 'fee',
       'adjustments[0][definition][label]' => '',
       'adjustments[0][definition][amount][number]' => '2.00',
     ];
+
     $this->submitForm($edit, 'Save');
     $this->assertSession()->pageTextContains('The adjustment label field is required.');
     $edit['adjustments[0][definition][label]'] = 'Test fee';
diff --git a/modules/order/tests/src/FunctionalJavascript/AdjustmentTest.php b/modules/order/tests/src/FunctionalJavascript/AdjustmentTest.php
new file mode 100644
index 00000000..4b739870
--- /dev/null
+++ b/modules/order/tests/src/FunctionalJavascript/AdjustmentTest.php
@@ -0,0 +1,115 @@
+<?php
+
+namespace Drupal\Tests\commerce_order\FunctionalJavascript;
+
+use Drupal\commerce_order\Entity\Order;
+use Drupal\commerce_price\Price;
+use Drupal\profile\Entity\Profile;
+use Drupal\Tests\commerce\FunctionalJavascript\JavascriptTestTrait;
+use Drupal\Tests\commerce_order\Functional\OrderBrowserTestBase;
+
+/**
+ * Tests the commerce_order adjustments widget on the order form.
+ *
+ * @group commerce
+ */
+class AdjustmentTest extends OrderBrowserTestBase {
+
+  use JavascriptTestTrait;
+
+  /**
+   * The profile to test against.
+   *
+   * @var \Drupal\profile\Entity\Profile
+   */
+  protected $billingProfile;
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp() {
+    parent::setUp();
+    \Drupal::service('module_installer')->install(['profile']);
+
+    $profile_values = [
+      'type' => 'customer',
+      'uid' => 1,
+      'status' => 1,
+    ];
+    $this->billingProfile = Profile::create($profile_values);
+    $this->billingProfile->save();
+  }
+
+  /**
+   * Tests creating/editing adjustments on an order.
+   */
+  public function testAdjustments() {
+    // Create an order through the add form.
+    $this->drupalGet('/admin/commerce/orders');
+    $this->getSession()->getPage()->clickLink('Create a new order');
+    $user = $this->loggedInUser->getAccountName() . ' (' . $this->loggedInUser->id() . ')';
+    $edit = [
+      'customer_type' => 'existing',
+      'uid' => $user,
+    ];
+    $this->submitForm($edit, t('Create'));
+
+    $entity = $this->variation->getSku() . ' (' . $this->variation->id() . ')';
+
+
+    $this->getSession()->getPage()->findField('Override the unit price')->check();
+
+    $this->getSession()->getPage()->fillField('order_items[form][inline_entity_form][purchased_entity][0][target_id]', $entity);
+    $this->getSession()->getPage()->fillField('order_items[form][inline_entity_form][quantity][0][value]', '1');
+    $this->getSession()->getPage()->fillField('order_items[form][inline_entity_form][unit_price][0][amount][number]', '9.99');
+    $this->click('#edit-order-items-form-inline-entity-form-actions-ief-add-save');
+    $this->assertSession()->assertWaitOnAjaxRequest();
+
+    $this->getSession()->getPage()->fillField('adjustments[0][type]', 'fee');
+    $this->assertSession()->waitForField('adjustments[0][definition][label]');
+    $this->assertSession()->fieldExists('adjustments[0][definition][amount][number]');
+    $this->assertSession()->fieldExists('adjustments[0][definition][included]');
+    $this->getSession()->getPage()->fillField('adjustments[0][definition][label]', 'Test adjustment 1');
+    $this->getSession()->getPage()->fillField('adjustments[0][definition][amount][number]', '1.32');
+
+    $this->click('#edit-adjustments-add-more');
+    $this->assertSession()->waitForField('adjustments[1][type]');
+    $this->assertSession()->fieldValueEquals('adjustments[0][definition][label]', 'Test adjustment 1');
+    $this->assertSession()->fieldValueEquals('adjustments[0][definition][amount][number]', '1.32');
+    $this->assertSession()->fieldExists('adjustments[0][definition][included]');
+
+    $this->getSession()->getPage()->fillField('adjustments[1][type]', 'custom');
+    $this->assertSession()->waitForField('adjustments[1][definition][label]');
+    $this->getSession()->getPage()->fillField('adjustments[1][definition][label]', 'Test adjustment 2');
+    $this->getSession()->getPage()->fillField('adjustments[1][definition][amount][number]', '-10.00');
+
+    $edit = [
+      'billing_profile[0][profile][address][0][address][given_name]' => 'John',
+      'billing_profile[0][profile][address][0][address][family_name]' => 'Smith',
+      'billing_profile[0][profile][address][0][address][address_line1]' => '123 street',
+      'billing_profile[0][profile][address][0][address][postal_code]' => '94043',
+      'billing_profile[0][profile][address][0][address][locality]' => 'Mountain View',
+      'billing_profile[0][profile][address][0][address][administrative_area]' => 'CA',
+    ];
+    $this->submitForm($edit, 'Save');
+    $this->assertSession()->pageTextContains('The order has been successfully saved.');
+
+    $order = Order::load(1);
+    $this->assertEquals(1, count($order->getItems()));
+    $this->assertEquals(new Price('1.31', 'USD'), $order->getTotalPrice());
+    $this->assertCount(2, $order->getAdjustments());
+
+    // Test removing an adjustment.
+    $this->clickLink('Edit');
+    $this->getSession()->getPage()->fillField('adjustments[1][type]', '_none');
+    $this->assertSession()->assertWaitOnAjaxRequest();
+    $this->assertSession()->fieldNotExists('adjustments[1][definition][label]');
+
+    $this->submitForm([], 'Save');
+    \Drupal::entityTypeManager()->getStorage('commerce_order')->resetCache([1]);
+    $order = Order::load(1);
+    $this->assertEquals(new Price('11.31', 'USD'), $order->getTotalPrice());
+    $this->assertCount(1, $order->getAdjustments());
+  }
+
+}
