Looks good, seems to work for me as well.
But should we add the full yarn.lock
file of nearly 3k lines?
SanderJP β created an issue.
The reset facets option ("Adds reset facets link") will be shown now as well when a search query is used.
The main difference between hook_field_widget_multivalue_form_alter
(D9) and hook_field_widget_complete_form_alter
(D10) is in D9 $elements
is the widget itself:
In D10 we get the parent container element $field_widget_complete_form
containing the widget:
The attached patch is assuming this parent container setup is consistent for all fields but I've only tested this on a node entity type. But this patch allows me to use the Visibility Conditions again.
SanderJP β created an issue.
I would not recommend using this patch. The changes to `web/core/misc/states.js` are breaking form states on textfields and textareas, you cannot make those fields required anymore. Took me way too long to figure that out.
I just ran into a similar issue where the address search is working for anonymous but not for logged in users. Can you test if the attached patch fixes the issue? I've removed setting the form-autocomplete
class on the search input. It fixes my issue but I'm not sure yet if this change has any other effects, a quick search seemed it was only used for some styling.