Problem/Motivation

The problem is that in `Drupal.behaviors.floatingLabels` we are using once on the whole form and then currently present form elements. This will not work if form is loading any form elements later over AJAX because once is already executed on form.

This is also a good opportunity to switch to Drupal once call and remove jQuery dependency.

Comments

pivica created an issue. See original summary.

pivica’s picture

Here is a patch.

pivica’s picture

And for a composer builds here is a patch build on top of #3298746: Floating label width adjustment should set min-width and not width patch.

pivica’s picture

Status: Active » Needs review

  • pivica committed 1cdbfdc on 8.x-1.x
    Issue #3304161 by pivica: Floating labels JS code is not executed for...
pivica’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.