Skip to content

Commit

Permalink
Issue #2979157 by wrany, bojanz: Autocomplete fields should not be li…
Browse files Browse the repository at this point in the history
…mited by #maxlength
  • Loading branch information
oliverhabara authored and bojanz committed Jun 13, 2018
1 parent 86f5613 commit 5b9e0e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
'#target_type' => 'commerce_product',
'#tags' => TRUE,
'#required' => TRUE,
'#maxlength' => NULL,
];

return $form;
Expand Down
1 change: 1 addition & 0 deletions src/Element/EntitySelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public static function processEntitySelect(&$element, FormStateInterface $form_s
'#default_value' => $default_value,
'#size' => $element['#autocomplete_size'],
'#placeholder' => $element['#autocomplete_placeholder'],
'#maxlength' => NULL,
];
}

Expand Down

0 comments on commit 5b9e0e0

Please sign in to comment.