Form select search matches only the start of an option label on web, but anywhere in the label in the app

未关闭 适合新手
#294 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
67/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
frontend

调研方向

首先找到 Web 表单 select 搜索的实现,并将其标签匹配方式与 issue 中描述的应用行为进行比较。使用标签为 Harrogate Town v Bury 的选项复现问题,并搜索 Bury;当 Web 和应用都按照商定的匹配方式找到该选项时,任务即完成。任务描述没有提及源文件或测试。

由索引模型根据 Issue 内容生成。

描述

In a form select field, typing in the search box filters options differently depending on platform.

Web (new Reddit): only options whose label starts with the typed text are shown.

  • Tested on Firefox / Chrome browsers on Windows 11
  • Tested on Firefox / Chrome web app on Android 15

Reddit app: options whose label contains the typed text anywhere are shown.

  • Reddit version 2026.41.0 on Android 15

Reproduce steps: a Blocks app on Devvit 0.14.8 opens a form from a subreddit menu item with a select whose options are fixtures labelled like Harrogate Town v Bury. On web, typing Bury finds nothing; on the app, typing Bury finds Harrogate Town v Bury

Expected: the same matching on both, ideally "contains" as in the app, so users can search by any word in the label.

Web screenshot (Firefox):

Start of label:

Image

Mid label:
Image

Mobile:

Image

Exact app is https://developers.reddit.com/apps/sfmatchthreads in case it matters

主要语言
TypeScript
星标
217
派生
89
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

reddit/devvit 的其他 Issue

查看 reddit/devvit 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。