Reproduce steps:

  1. Install commerce and commerce_product module.
  2. Create an product attribute "size" /admin/commerce/product-attributes and set element type as "Select list"
  3. Set commerce_product_variation's size field form widget as Select boxes(Single value).
  4. Create a product(Every thing works fine in this step).
  5. Edit last step's product, and add new variation. the size don't work, after open chrome's inspect and click Console, we can see js error

This error caused by the wrong loading order of js file, the select2.full.min.js and select2boxes.js is the last two loaded js file.
This is the relevant issue https://stackoverflow.com/questions/20034522/select2-is-not-a-function

CommentFileSizeAuthor
er.png288.89 KBlawxen
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

caseylau created an issue. See original summary.

lawxen’s picture

lawxen’s picture

This commit https://www.drupal.org/project/select2boxes/issues/2982822#comment-12676256 make this bug disappeared accidentally

matsbla’s picture

Status: Active » Closed (outdated)

That is great, thanks for reporting!

lawxen’s picture

Status: Closed (outdated) » Needs work

@matsbla
But if we uninstall big_pipe, the issue come back when we use commerce_price_list module,
This module hasn't handle inline_entity_form rightly,
So this issue hasn't be fixed totally. But it become less important because most of drupal8 site will enable big_pipe.

matsbla’s picture

Valentine94’s picture

Status: Needs work » Closed (cannot reproduce)

Hi guys, just tested it with just inline_entity_form - all seems OK, tried with commerce everything seems fine as well

Note: everything with uninstalled big_pipe of course

matsbla’s picture

@caseylau
Please test with last dev version!
If you still encounter the problem, please provide steps to reproduce.