Skip to content

add better async compatibility#354

Open
jrnxf wants to merge 1 commit into
dip:mainfrom
jrnxf:jrnxf/async-compat
Open

add better async compatibility#354
jrnxf wants to merge 1 commit into
dip:mainfrom
jrnxf:jrnxf/async-compat

Conversation

@jrnxf

@jrnxf jrnxf commented Apr 18, 2025

Copy link
Copy Markdown

As mentioned in #280, when dealing with asynchronous fetching and a dynamic list of options, the first item is not always selected an you'd expect. Additionally, as you start typing and update your query, even though the data fetching is async, the selected item jumps to the top (instead of staying where it is), the async options update, and the first item is not highlighted.

If the overall change is acceptable I'll update the README and get everything polished.

Here's a before and after:

Before:

before.mov

After:

after.mov

@vercel

vercel Bot commented Apr 18, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
cmdk-website ✅ Ready (Inspect) Visit Preview Apr 18, 2025 10:14am

@jaxxreal

Copy link
Copy Markdown

Thanks @jrnxf! I hope we can get the maintainers to look at this sooner rather than later!

@greg-wolff

Copy link
Copy Markdown

+1 also dealing with this issue

@siimsams

siimsams commented Jun 13, 2025

Copy link
Copy Markdown

What a legend! 👏

@pacocoursey does this need some input?

EDIT:
Forked your fix and I'm using it now. Would like to see some feedback on this so we could get this merged. I think this would be beneficial for everybody.

@jrnxf

jrnxf commented Sep 24, 2025

Copy link
Copy Markdown
Author

@pacocoursey any chance we could get a review on this one? Would love to get this out ❤️

@jrnxf

jrnxf commented May 8, 2026

Copy link
Copy Markdown
Author

@pacocoursey could we please get some eyes on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants