Skip to content

fix(editor): Move focus to search input in RLC #15741

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

Conversation

RomanDavydchuk
Copy link
Contributor

Summary

Prevent the default mousedown event behavior on the RLC input to make sure the focus stays on the search input. There is already functionality to move focus to the search input in place, but the focus would move back to the original input. This happened, because the mouse would still hover over the input and the search input rendered too quickly, which caused the browser to move the focus back. By preventing mousedown event default behavior, the focus stays on the search input

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-2007/rlc-when-opening-list-that-contains-a-search-bar-move-the-focus-to-it

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@RomanDavydchuk RomanDavydchuk marked this pull request as ready for review May 27, 2025 10:53
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

cubic reviewed 1 file and found no issues. Review PR in cubic.dev.

@dana-gill dana-gill requested a review from elsmr May 27, 2025 10:55
Copy link

codecov bot commented May 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label May 27, 2025
@shortstacked
Copy link
Contributor

Workflow Test Results 📊 ⚠️ 3 Warnings (0 Failed), 👍 80 Successful out of 83 total workflows.

View full workflow run

Tested Ref: 0a48f4613b87b0dced96f7d13819dcd32d649ae8 by @elsmr

⚠️ Warnings (3)

Workflow ID Workflow Name Reason
237 BasicLLMChain:AzureChat Workflow contains new data that previously did not exist.
35 Slack:User:getPresence info:UserProfile:get update... Workflow contains new data that previously did not exist.
257 Agent:auto-fix:anthropic Workflow contains new data that previously did not exist.

Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

@RomanDavydchuk RomanDavydchuk requested a review from elsmr May 27, 2025 19:05
@shortstacked
Copy link
Contributor

Workflow Test Results 📊 ⚠️ 3 Warnings (0 Failed), 👍 80 Successful out of 83 total workflows.

View full workflow run

Tested Ref: 499efa05d10edd6ef470c688595bcad42e87b122 by @ShireenMissi

⚠️ Warnings (3)

Workflow ID Workflow Name Reason
237 BasicLLMChain:AzureChat Workflow contains new data that previously did not exist.
257 Agent:auto-fix:anthropic Workflow contains new data that previously did not exist.
53 ConvertKit:CustomField:create getAll update delete... Workflow contains new data that previously did not exist.

Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

@shortstacked
Copy link
Contributor

Workflow Test Results 📊 🔴 1 Failed, ⚠️ 2 Warnings, 👍 80 Successful out of 83 total workflows.

Detail: Workflows failing: 258: Workflow contains 2 deleted data. View full workflow run

Tested Ref: 3fba738b7a77464e4ee8178c5073b82ea6bbc476 by @ShireenMissi

❌ Failed Tests (1)

Workflow ID Workflow Name Reason
258 Agent:auto-fix:openai Workflow contains 2 deleted data.

⚠️ Warnings (2)

Workflow ID Workflow Name Reason
237 BasicLLMChain:AzureChat Workflow contains new data that previously did not exist.
257 Agent:auto-fix:anthropic Workflow contains new data that previously did not exist.

Copy link
Contributor

✅ All Cypress E2E specs passed

@RomanDavydchuk RomanDavydchuk merged commit fee10da into master May 28, 2025
34 checks passed
@RomanDavydchuk RomanDavydchuk deleted the node-2007-rlc-when-opening-list-that-contains-a-search-bar-move-the-focus-to-it branch May 28, 2025 14:44
Alexandero89 pushed a commit to Alexandero89/n8n that referenced this pull request May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants