Experiment setup: emptying a traffic share box and typing a number shows a leading zero ("034")

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

通过仪表板的新实验表单在 Chromium 中复现此错误:清空某个版本的流量份额字段并输入 34;该字段应包含 34,而不是 034。找到流量份额输入组件及其现有的前端测试,然后验证清空字段时,在保持聚焦的情况下字段仍为空,并且输入数字时能正确替换空值。

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

描述

bug post-launch

What happens

In the new-experiment form, clearing a version's traffic share box and typing 34 makes the box show 034: the empty box falls back to 0 and the typed digits are appended. Selecting the text and typing over it shows 34 as expected.

Measured

In Chromium, on the dashboard at main (2026-10-28), typing into the emptied first share box read back 034 after 34 was typed.

Expected

An emptied box stays empty while focused, so typing 34 gives 34.

🤖 Generated with Claude Code

主要语言
Python
星标
0
派生
4
平均合并
5 小时 36 分钟
30 天内合并 PR
509

环境准备

从这里开始

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

Controlvar/controlvar 的其他 Issue

查看 Controlvar/controlvar 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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