diff --git a/src/Element/WebformOptions.php b/src/Element/WebformOptions.php index 47bba4d58..483ba0ae4 100644 --- a/src/Element/WebformOptions.php +++ b/src/Element/WebformOptions.php @@ -100,6 +100,7 @@ public static function processWebformOptions(&$element, FormStateInterface $form '#title' => t('Option text'), '#title_display' => t('invisible'), '#placeholder' => t('Enter text'), + '#maxlength' => 256, ], ], '#default_value' => (isset($element['#default_value'])) ? self::convertOptionsToValues($element['#default_value']) : [],