# Product form: dropdowns don't reflect selection / Weight Unit closes the edit panel (1.11.0-rc3)

**URL:** <https://forum.modmore.com/t/product-form-dropdowns-dont-reflect-selection-weight-unit-closes-the-edit-panel-1-11-0-rc3/2721>\
**Category:** Commerce\
**Created:** [October 25, 2026, 4:05pm UTC](https://forum.modmore.com/t/product-form-dropdowns-dont-reflect-selection-weight-unit-closes-the-edit-panel-1-11-0-rc3/2721 "2026-10-25T16:05:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ideastm](https://forum.modmore.com/letter_avatar_proxy/v4/letter/i/9e8a1a/32.png) [@ideastm](https://forum.modmore.com/u/ideastm)\
**Post date:** [October 25, 2026, 4:05pm UTC](https://forum.modmore.com/t/product-form-dropdowns-dont-reflect-selection-weight-unit-closes-the-edit-panel-1-11-0-rc3/2721/1 "2026-10-25T16:05:34Z")

</div>

Environment: Commerce 1.11.0-rc3, MODX Revolution 3.2.4-pl, PHP 8.2. Fresh install, no custom modules affecting the product form (confirmed by disabling all optional modules — issue persists).

Symptom 1 — dropdowns don’t show the selected value

Steps to reproduce:

1. Commerce Dashboard → Products → Add Product (completely fresh, unsaved product)
2. Look at the “Type” (Art/class\_key) dropdown on the General tab

Expected: defaults to “Product” (the parent class), like a native would. Actual: dropdown renders empty/blank, even though there is no actual empty option in the list. Root cause (traced in source): src/Admin/Product/Form.php registers the class\_key field (ClassField) without a ‘default’ value. With no saved value, field.value is empty, so in admin/widgets/fields/select.twig no gets selected=“selected”. A native would still visually fall back to the first option, but Choices.js (bundled: v11.2.2, wrapped in assets/…/backend/js/select.js via new Choices(select, {…})) does not replicate that fallback — it just shows nothing selected.

The same applies to any other Select-type field without an explicit default and to selecting a new value generally not visually updating afterwards — happens consistently, independent of which optional modules are enabled/disabled.

Symptom 2 — changing the Weight Unit closes the edit panel entirely

Steps to reproduce:

1. Same fresh Add Product form
2. Open the “Weight Unit” dropdown (Shipping tab) and pick a value

Expected: value is set, form stays open.  
Actual: the edit panel closes/exits immediately.

Possibly related: duplicate DOM ids on the pricing tab

Chrome DevTools flags “Duplicate form field id in the same form” (6 elements) on the same form, all . Traced to backend/js/components/Fields.js, enhanceCurrencyField():

replacement.setAttribute(‘id’, fld.getAttribute(‘id’) + ‘-enhanced’);

When the source field has no id attribute, getAttribute(‘id’) returns null, and JS string concatenation produces the literal id “null-enhanced” on every affected input — so any two such fields collide. Not yet 100% pinned down which specific dynamically-built pricing row is missing the id, but wanted to flag it since it may be related to the general “enhanced field doesn’t reflect state” pattern above.

Happy to provide a screen recording or further repro details if useful. Given this affects basic product creation (not an edge case), wanted to flag it before it lands in a stable release.

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [October 25, 2026, 4:08pm UTC](https://forum.modmore.com/t/product-form-dropdowns-dont-reflect-selection-weight-unit-closes-the-edit-panel-1-11-0-rc3/2721/2 "2026-10-25T16:08:20Z")

</div>

Apologies, our spam filter made you get stuck in the review queue that I overlooked.

I know you’ve since emailed our support inbox and issue 1 has been solved in 1.11.0-pl. The second issue has been harder to reproduce and is still open in our issue tracker.
