Commit f401a3b7 authored by renatog's avatar renatog Committed by renatog
Browse files

Issue #3271394 by RenatoG: Settings for quantity of classes appearing wrongly...

Issue #3271394 by RenatoG: Settings for quantity of classes appearing wrongly when field type is different of multiple class fields
parent 2a3608e0
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -165,6 +165,13 @@ class BlockClassSettingsForm extends ConfigFormBase {
      '#title' => $this->t("Quantity of classes per block"),
      '#type' => 'number',
      '#default_value' => $qty_classes_per_block,
      // Show the qty_classes_per_block only when the field type is multiple
      // because is the only type that is used.
      '#states' => [
        'visible' => [
          ':input[name="field_type"]' => ['value' => 'multiple_textfields'],
        ],
      ],
    ];

    $maxlength_block_class_field = 255;