cms
cms copied to clipboard
When using search in ElementSelectorModal, results are not updated after adding new entry
Description
When any text is entered in the search box and a new entry is added via the ElementSelectorModal, the results do not updated after saving this new entry until the search value is changed. When a new entry is saved, the results should be updated accordingly.
This works as expected when the search box is not being used, as new entries are shown in the results as soon as they're added.
Steps to reproduce
- Open the ElementSelectorModal on an applicable field
- Use the search bar to filter results by any string (list may show 0 or more results, doesn't matter)
- Add new entry from the ElementSelectorModal and Save
- Results are not updated until the search box is changed (add or remove any characters)
Additional info
- Craft version: 3.7.36
- PHP version: 7.4.27
- Database driver & version: MySQL 5.7.36
- Plugins & versions: Amazon S3 1.3.0 Control Panel CSS 2.4.0 Cookies 1.1.15 CP Field Inspect 1.2.6 Embedded Assets 2.10.1 Expanded Singles 1.2.0 Feed Me 4.4.1.1 Freeform 3.13.4 Mix 1.5.2 Neo 2.12.5 RD Zendesk 1.3.2 Redactor 2.10.5 Retour 3.1.70 Sentry SDK 1.1.2 SEO 3.4.26 Super Table 2.7.1 Typed Link Field 1.0.25
This is happening because the entry’s keywords do not get indexed immediately when created. Unfortunately there’s not much we can do to solve it for now, so I’ll leave this open.