Skip to content

Commit 5b9e0e0

Browse files
oliverhabarabojanz
oliverhabara
authored andcommitted
Issue #2979157 by wrany, bojanz: Autocomplete fields should not be limited by #maxlength
1 parent 86f5613 commit 5b9e0e0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

modules/product/src/Plugin/Commerce/Condition/OrderItemProduct.php

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
8787
'#target_type' => 'commerce_product',
8888
'#tags' => TRUE,
8989
'#required' => TRUE,
90+
'#maxlength' => NULL,
9091
];
9192

9293
return $form;

src/Element/EntitySelect.php

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public static function processEntitySelect(&$element, FormStateInterface $form_s
123123
'#default_value' => $default_value,
124124
'#size' => $element['#autocomplete_size'],
125125
'#placeholder' => $element['#autocomplete_placeholder'],
126+
'#maxlength' => NULL,
126127
];
127128
}
128129

0 commit comments

Comments
 (0)