When using search in ElementSelectorModal, results are not updated after adding new entry
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in ElementSelectorModal with a search term, then add and save a new entry while the filter remains active. Trace how the modal refreshes results after saving and verify that the matching new entry appears without changing the search value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100