View all results link disappears after closing and reopening ui-autocomplete

Created on 17 November 2022, over 1 year ago
Updated 5 June 2023, about 1 year ago

Problem/Motivation

When I type a search phrase, I see my results plus the "View all results" link. I click outside of the input and the ui-autocomplete goes away. That works as expected, however, refocus the input and hit the down arrow to bring the results back and now that "view all results" link is gone.

You can start typing again and it will show up for other phrases, however, it will not appear if you retype the same phrase. For example, searching "truck" twice will result in that "view all results" button missing

Steps to reproduce

1. Search "your phrase", "view all results" button is present.
2. blur the text input, autocomplete disappears.
3. Focus the input, hit the down arrow to bring results back and you will see the "view all results" button is gone.
4. Retyping anything other than "your phrase" will result in that button being present.
5. If you retype the first phrase, the button will still now show up.

I think it has something to do with how the "caching" works inside Drupal.autocomplete.cache. I will look into this and hopefully post a patch

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rondog469

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.69.0 2024