Hello I'm reporting a minor, frontend related inconvenience in the admin.
I'm working on a project where we have a very complex product / variant field layout and when I'm trying to look up the fields I have created by their name / handle to add them to the required field layouts (product or variant), the system is listing out the previous matches as well, not only the ones that should appear based on the search term.
Steps to reproduce
Create multiple fields
GOTO /admin/commerce/settings/producttypes/[n]/1#variant-fields or /admin/commerce/settings/producttypes/[n]/1#product-fields
Search for a new field
Add it to a field layout group (don't save)
Search for a new field
Now you should see the previous match / field you searched for as well in addition to the new field you searched for
Expected behavior
The system only lists out valid matches based on the search term.
We don't see the previous matches in addition to the correct one.
Actual behavior
System is seemingly listing out the previous matches as well in addition to the correct one.
I'm assuming that some kind of JS array is not being emptied out when a new search is fired, so the system unnecessarily remembers the previous matches. (I didn't see any XHR when I'm doing these searches that's why I believe it's just a frontend bug)
Craft CMS version
5.4.4
Craft Commerce version
5.1.1
PHP version
PHP 8.2.22 (cli)
Operating system and version
Ubuntu 22.04 (running PHP FPM, Nginx, MySQL in Docker)
What happened?
Description
Hello I'm reporting a minor, frontend related inconvenience in the admin. I'm working on a project where we have a very complex product / variant field layout and when I'm trying to look up the fields I have created by their name / handle to add them to the required field layouts (product or variant), the system is listing out the previous matches as well, not only the ones that should appear based on the search term.
Steps to reproduce
Expected behavior
The system only lists out valid matches based on the search term. We don't see the previous matches in addition to the correct one.
Actual behavior
System is seemingly listing out the previous matches as well in addition to the correct one. I'm assuming that some kind of JS array is not being emptied out when a new search is fired, so the system unnecessarily remembers the previous matches. (I didn't see any XHR when I'm doing these searches that's why I believe it's just a frontend bug)
Craft CMS version
5.4.4
Craft Commerce version
5.1.1
PHP version
PHP 8.2.22 (cli)
Operating system and version
Ubuntu 22.04 (running PHP FPM, Nginx, MySQL in Docker)
Database type and version
mysql:8.0.36
Image driver and version
No response
Installed plugins and versions