Commit 37f36a3a authored by Carsten  Rose's avatar Carsten Rose

Update temporay 'hidden' to match TypeHeadTag

parent b60ee6e3
...@@ -1356,6 +1356,8 @@ abstract class AbstractBuildForm { ...@@ -1356,6 +1356,8 @@ abstract class AbstractBuildForm {
// Tag // Tag
if (HelperFormElement::booleParameter($formElement[FE_TYPEAHEAD_TAG] ?? '-')) { if (HelperFormElement::booleParameter($formElement[FE_TYPEAHEAD_TAG] ?? '-')) {
$attribute .= Support::doAttribute(DATA_TYPEAHEAD_TAG, 'true'); $attribute .= Support::doAttribute(DATA_TYPEAHEAD_TAG, 'true');
// Default: tab, comma
$kk = '[' . ($formElement[FE_TYPEAHEAD_TAG_DELIMITER] ?? '9,44') . ']'; $kk = '[' . ($formElement[FE_TYPEAHEAD_TAG_DELIMITER] ?? '9,44') . ']';
$attribute .= Support::doAttribute(DATA_TYPEAHEAD_TAG_DELIMITER, $kk); $attribute .= Support::doAttribute(DATA_TYPEAHEAD_TAG_DELIMITER, $kk);
$formElement[FE_INPUT_TYPE] = 'hidden'; $formElement[FE_INPUT_TYPE] = 'hidden';
...@@ -1450,7 +1452,10 @@ abstract class AbstractBuildForm { ...@@ -1450,7 +1452,10 @@ abstract class AbstractBuildForm {
$htmlTag = '<input'; $htmlTag = '<input';
if (!empty($formElement[FE_INPUT_TYPE])) { if (!empty($formElement[FE_INPUT_TYPE])) {
$formElement[FE_TYPE] = $formElement[FE_INPUT_TYPE]; $formElement[FE_TYPE] = $formElement[FE_INPUT_TYPE];
$formElement[FE_TYPE] = 'hidden'; // TypeAhead tag elements needs to be hidden
if (HelperFormElement::booleParameter($formElement[FE_TYPEAHEAD_TAG] ?? '-')) {
$formElement[FE_TYPE] = 'hidden';
}
} }
$attribute .= HelperFormElement::getAttributeList($formElement, [FE_TYPE, 'size']); $attribute .= HelperFormElement::getAttributeList($formElement, [FE_TYPE, 'size']);
$attribute .= Support::doAttribute('value', htmlentities($value), false); $attribute .= Support::doAttribute('value', htmlentities($value), false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment