-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
fix(editor): Move focus to search input in RLC #15741
Conversation
There was a problem hiding this 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.
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
Workflow Test Results 📊
|
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. |
|
…ins-a-search-bar-move-the-focus-to-it
Workflow Test Results 📊
|
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. |
|
…ins-a-search-bar-move-the-focus-to-it
Workflow Test Results 📊 🔴 1 Failed,
|
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. |
✅ All Cypress E2E specs passed |
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 preventingmousedown
event default behavior, the focus stays on the search inputRelated 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
release/backport
(if the PR is an urgent fix that needs to be backported)