Skip to content

Conversation

@brichet
Copy link
Collaborator

@brichet brichet commented Feb 7, 2025

Fixes #155

This PR prevent propagating the up and down arrow event to the Autocomplete component if the autocompletion is not opened.
It is weird that it is not handled by material UI itself, maybe there is a better solution.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2025

Binder 👈 Launch a Binder on branch brichet/jupyter-chat/up_down_arrow_input

@jtpio jtpio added the bug Something isn't working label Feb 7, 2025
Copy link
Member

@jtpio jtpio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Just tried locally and it works fine now:

jupyter-chat-up-down-arrow.mp4

We can always revisit the implementation alter if there is a better pattern or option to solve this.

@jtpio jtpio merged commit dfbfea9 into jupyterlab:main Feb 10, 2025
13 of 14 checks passed
@brichet brichet deleted the up_down_arrow_input branch February 10, 2025 09:33
@brichet
Copy link
Collaborator Author

brichet commented Feb 10, 2025

cc. @dlqqq to port it to jupyter-ai v2, since it may fix jupyterlab/jupyter-ai#939

@dlqqq
Copy link
Member

dlqqq commented Feb 10, 2025

Thanks! I've assigned it to a new member on our team.

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not able to use the up and down arrows

3 participants