Autocomplete and override text fields switch order when delta > 10

Created on 20 April 2020, over 5 years ago
Updated 13 January 2025, 7 months ago

The widget first shows the entity reference autocomplete text field & then the override text field. But when you reference more than 10 items, they are switched (first override, then autocomplete):

This because the weight for the autocomplete text field is set to the items delta:
https://git.drupalcode.org/project/drupal/-/blob/8.8.x/core/lib/Drupal/C...

While the weight of the override text field is hard-coded to 10:
https://git.drupalcode.org/project/entity_reference_override/-/blob/8.x-...

πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium rp7

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024