- Issue created by @keszthelyi
- πΊπΈUnited States dasginganinja Bethlehem, PA
It seems the most recent release of the library is 3.0.0. I have adjusted the version in the library file to reflect this. I feel this change is in line with the issue and I can certainly confirm the select.oldChosen issue without this patch.
- π§πͺBelgium keszthelyi Brussels
On a second thought, the version number in this case should not be following the chosen library version, but the module version. As this is defining the drupal.chosen assets version and not the library version. The caching issue itself is related to the module's js file (and not the chosen library js). The problem is that the browser returns the cached 4.x version of the module's js.
However, I think the ideal would be to remove the version property (not defining any version). By doing this, Drupal will use an automatically generated query string added to filenames that changes on every update or full cache flush. Like this it won't be needed to always update the version number each time the assets are changed in a new module version. See this issue for entity browser π Remove VERSION from libraries.yml Fixed for more details.
- Merge request !20Issue #3514979: Remove version for drupal.chosen library. β (Open) created by keszthelyi
- πΊπΈUnited States dasginganinja Bethlehem, PA
That patch also works on my end and resolves my production issues in the same manner.
- ππΊHungary peter_serfozo
I also tested the patch, and it resolves the browser caching issue.
-
nagy.balint β
committed 35dee0da on 5.0.x
Issue #3514979 by keszthelyi, dasginganinja, peter_serfozo: JS error due...
-
nagy.balint β
committed 35dee0da on 5.0.x
Automatically closed - issue fixed for 2 weeks with no activity.