Skip to content

Commit

Permalink
[SD-115] conflicting valid in textarea and textfield
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-gao committed Oct 21, 2024
1 parent 86d5c24 commit e44ef1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tide_webform/tide_webform.module
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function tide_webform_form_alter(&$form, FormStateInterface $form_state, $form_i
if ($form_id == 'webform_ui_element_form') {
$form['#after_build'][] = 'tide_webform_webform_ui_element_form_after_build';
$form['#attached']['library'][] = 'tide_webform/webform';
if (isset($form['properties']['form']['length_container']['maxlength']) && array_key_exists('#default_value', $form['properties']['form']['length_container']['maxlength'])) {
if (isset($form['properties']['form']['length_container']['maxlength']) && array_key_exists('#default_value', $form['properties']['form']['length_container']['maxlength']) && $form['properties']['type']['#value'] === 'textfield') {
$default_value = NestedArray::getValue($form,
[
'properties',
Expand Down

0 comments on commit e44ef1d

Please sign in to comment.