Closed (fixed)
Project:
Permissions by Term
Version:
8.x-2.19
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2020 at 15:15 UTC
Updated:
20 Nov 2020 at 14:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
robotjox commentedComment #3
robotjox commentedNever mind. This turns out to be a problem with certain Bootstrap-based themes and their templates. Bartik is not affected by this as I reported earlier.
In case this helps others: what solved the problem for me was including a form-element.html.twig file in my theme's template folder.
I suspect a missing div was the culprit.
Comment #4
intrafusionI am getting the exact same issue using Claro, I'm investigating a solution
The Chrome console reports:
Comment #5
heikkiy commentedThis is most likely due to Claro changing the default classes for form-element:
Seven:
<div class="js-form-item form-item js-form-type-select form-type-select js-form-item-field-targeting form-item-field-tags">Claro:
<div class="js-form-item form-item js-form-type-select form-type--select js-form-item-field-targeting form-item--field-tags">Both form-type--select and form-item--field-tags have changed in Claro.
Comment #6
heikkiy commentedProblem seems to actually be with the following code in dom-client.protype.js which is trying to find a field with the class .form-type-item. This has changed in Claro to be .form-type--item. It would be better to use the JS class .js-form-type-item which is the same in Seven and Claro.
Attached is a patch for this.
Comment #7
heikkiy commentedComment #8
heikkiy commentedThere seem to be also automated tests which are covering this part but they seem to always finish successfully not taking Claro DOM into account.
Comment #9
heikkiy commentedThis also updates the included Webpack bundle.
Comment #10
heikkiy commentedThe above patch was run against 3.x. Here is a similar patch for 2.x.
Comment #11
jepster_Thanks for the patches! I have applied them on the latest patch releases.
3.1.4: https://www.drupal.org/project/permissions_by_term/releases/3.1.4
8.x-2.27: https://www.drupal.org/project/permissions_by_term/releases/8.x-2.27
Comment #12
jepster_