Hi there!
I stumbled on this problem with conditional_fields, but the issue is in the core state.js. I just have 1 Select-Field, which allows multiple-values, and wanted to have a text-field to show up when an option is selected.

So the text-field should be hidden initially, since nothing is selected, not even "_none" (which is another issue I'm not going into here).

But the text-field is shown until I select something. If I select the one option which should show it, it stays there, otherwise it's gone. So that works fine, only the initial state is broken.

I had the issue with D7, but it holds true for D8 and D9. I tested it with D7, it worked there... so I assume it will work with D8 and D9.

Membership dollars fund testing for the Drupal project. Drupal Association Learn more

Comments

SerkanB created an issue. See original summary.

SerkanB’s picture

SerkanB’s picture

Version: 9.x-dev » 8.3.x-dev

Changing Version to D8 since D9 isn't really that interesting yet, therefore no one will get it I guess.

manishmore’s picture

as seen in an issue summary its has been asked to apply to
8.3.x-dev but it didn't so, updated same to the version of 8.3.x-dev core.

SerkanB’s picture

Yeah, my fault... didn't think it would be a problem to apply, since the code looked basically the same.
But now the patch also has a better (more valid/standard-conform) name :D thx.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.