- Issue created by @marco.b
- 🇵🇱Poland mahyarss
Thanks for reporting this issue. I can confirm the problem with required entity reference fields auto-selecting the first option when using the Select (ActiveTags) widget.
I've identified the root cause and prepared a patch that addresses this by:
- Adding proper empty option handling for required fields
- Preventing browser auto-selection behavior
Please test the attached patch and confirm if it resolves the issue for you.
- 🇩🇪Germany marco.b
@mahyarsbt
thanks a lot for providing the patch. I have testet the patch and it works for me.
What was noticeable during testing was that an entry "– None –" appeared in the Entity Reference form field for half a second, which then immediately disappeared – see screenshot. I just wanted to point this out; it's fine if it's like that.