Skip to content

feat(copilot): improve preset prompt display behavior on input focus #1888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

ysfscream
Copy link
Member

PR Checklist

If you have any questions, you can refer to the Contributing Guide

What is the current behavior?

The dropdown menu reopens automatically after selecting custom generation options for the copilot feature. This creates a disruptive user experience as users must repeatedly dismiss the dropdown.

Issue Number

What is the new behavior?

Fixed the dropdown behavior to stay closed after selecting a custom generation option. The dropdown will now only open when explicitly triggered by the user, creating a smoother interaction flow.

Does this PR introduce a breaking change?

  • Yes
  • No

Specific Instructions

Testing should focus on verifying that the dropdown menu behaves correctly in all scenarios - it should open when clicked, but not reopen automatically after a selection is made.

Other information

This fix improves the overall UX of the preset prompt feature by making the input focus behavior more predictable and reducing unnecessary UI interactions.

@ysfscream ysfscream added fix Fix bug or issues desktop MQTTX Desktop labels Mar 11, 2025
@ysfscream ysfscream added this to the v1.12.0 milestone Mar 11, 2025
@ysfscream ysfscream requested a review from Red-Asuka March 11, 2025 03:10
@ysfscream ysfscream self-assigned this Mar 11, 2025
@ysfscream ysfscream added this to MQTTX Mar 11, 2025
@ysfscream ysfscream moved this to In Progress in MQTTX Mar 11, 2025
@Red-Asuka Red-Asuka merged commit 25f1e40 into main Mar 11, 2025
4 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in MQTTX Mar 11, 2025
@Red-Asuka Red-Asuka deleted the ysf/desktop branch March 11, 2025 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop MQTTX Desktop fix Fix bug or issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants