Hello,
I have 2 icon fields in the same content type: "Icon 1" and "Icon 2".
When selecting a first choice in "Icon 1" and selecting a 2nd choice in "Icon 2", I loose my selection on "Icon 1".

Fyi, I will post a patch to make the selection work with different fields in the same content type.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

make77 created an issue. See original summary.

make77’s picture

Assigned: make77 » ayalon
Status: Active » Needs review
FileSize
2.96 KB

I added a patch to fix this issue.
I also updated indenting and one variable name to match with Drupal JS coding styling.

ayalon’s picture

Thx for the report. The fix is almost perfect. I would not wrap the AJAX Request into the each() statement. Else you will execute the AJAX request multiple times.

  • d460a1a committed on 8.x-1.x
    Issue #2882364 by make77: Fixed multiple widgets on the same page
    
ayalon’s picture

Thx for the patch. I commited the fix.

ayalon’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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