diff --git a/core/modules/shortcut/src/Form/SwitchShortcutSet.php b/core/modules/shortcut/src/Form/SwitchShortcutSet.php
index 2ee852b91d..0e8ede00af 100644
--- a/core/modules/shortcut/src/Form/SwitchShortcutSet.php
+++ b/core/modules/shortcut/src/Form/SwitchShortcutSet.php
@@ -111,6 +111,9 @@ public function buildForm(array $form, FormStateInterface $form_state, UserInter
         // This ID could be used for menu name.
         '#maxlength' => 23,
         '#states' => [
+          'visible' => [
+            ':input[name="set"]' => ['value' => 'new'],
+          ],
           'required' => [
             ':input[name="set"]' => ['value' => 'new'],
           ],
