Keep focus when typing in full-page filter forms that auto-submit
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Read the “Lazy index/filter frames” section in CLAUDE.md and the reference implementation in #2815; this issue is explicitly blocked on that pull request merging. Then update the six listed filter views and add a system spec for each page that types through the auto-submit; done means the final input value and URL are preserved.
由索引模型根据 Issue 内容生成。
描述
🤖 From Claude:
Typing in a filter box on these pages reloads the whole page after a short pause, so the cursor leaves the box and any further typing is lost.
Why it happens
- The
collectionStimulus controller auto-submits text fields 400 ms after typing stops. - On these pages the filter form isn't inside a results Turbo Frame, so each submit is a full-page visit that drops focus.
Affected pages (frameless filter forms using collection, with text filters)
app/views/quotes/_search_boxes.html.erbapp/views/faqs/_search_boxes.html.erbapp/views/story_ideas/_search_boxes.html.erbapp/views/workshop_variation_ideas/_search_boxes.html.erbapp/views/forms/results.html.erbapp/views/bookmarks/tally.html.erb
Fix (already used on workshop logs in #2815)
turbo_refreshes_with method: :morph, scroll: :preservein the page view.data: { turbo_action: "replace" }on the filter form.data-turbo-permanentplus anidon any TomSelect wrapper so the morph doesn't strip its widget.- System spec per page: type, pause long enough to submit, keep typing, and assert the final value + URL.
- Pattern documented in
CLAUDE.md→ "Lazy index/filter frames".
Blocked on
- #2815 merging (it introduces the pattern and the reference implementation).
- 主要语言
- Ruby
- 星标
- 15
- 派生
- 28
- 平均合并
- 16 小时 38 分钟
- 30 天内合并 PR
- 298
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rubyforgood/awbw 的其他 Issue
-
blocked
难度 2/5 1-3 小时 新手友好度 68/100
rubyforgood/awbw#2824 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
rubyforgood/awbw#2822 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
rubyforgood/awbw#2160 ·
维护者通常 1 天内回复
-
Update callout faq defualt text when the new person subscription launches可能已有人在做 @maebeale 于 87 天前认领。 未关闭blocked
难度 2/5 1-3 小时 新手友好度 72/100
rubyforgood/awbw#2095 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
rubyforgood/awbw#2088 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
swombat/souls-house#795 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
-
Missing hi translation: components/common/CommunitySolution.tsx:communitySolution.numTimesStarred未关闭
难度 1/5 1 小时以内 新手友好度 63/100
维护者通常 1 天内回复
-
Tracking: SQLite usage and the Windows GVL/SQLite deadlock (lich-5#2254): moonwatch.lic, low risk未关闭
难度 2/5 1-3 小时 新手友好度 76/100
elanthia-online/dr-scripts#7968 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
fullsend-ai/agents#1901 ·
维护者通常 1 天内回复