Skip to content
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

Fix project selector focus by targeting first selected element #19

Draft
wants to merge 1 commit into
base: 6.0-stable
Choose a base branch
from

Conversation

mk2
Copy link
Contributor

@mk2 mk2 commented Mar 19, 2025

redmine.orgのチケットURL: https://www.redmine.org/issues/xxxx

TODO:

  • 単体テストかく
  • ...

@mk2 mk2 requested a review from Copilot March 19, 2025 04:22
@mk2 mk2 self-assigned this Mar 19, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request fixes the project selector focus behavior by targeting the first selected element instead of all selected ones.

  • Updates the focus logic on the project jump dropdown
  • Targets only the first selected project for improved UX
Comments suppressed due to low confidence (1)

app/assets/javascripts/application.js:778

  • The change updates the focusing behavior but lacks unit tests to verify that the first selected project is focused as expected. Please add tests to ensure this behavior works reliably.
selected.first().focus(); // Calling focus to scroll to selected project

@mk2 mk2 marked this pull request as draft March 19, 2025 04:29
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.

1 participant