# 点击数字主题组件参数将显示为已修改

**URL:** https://meta.discourse.org/t/clicking-on-numeric-theme-component-parameter-will-show-it-as-modified/216598
**Category:** Bug
**Tags:** pr-welcome
**Created:** [2022年一月31日 17:02 UTC](https://meta.discourse.org/t/clicking-on-numeric-theme-component-parameter-will-show-it-as-modified/216598 "2022-01-31T17:02:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2022年一月31日 17:02 UTC](https://meta.discourse.org/t/clicking-on-numeric-theme-component-parameter-will-show-it-as-modified/216598/1 "2022-01-31T17:02:44Z")

</div>

当单击数字主题组件设置并_不修改_该字段的情况下离开，直到屏幕刷新之前，它都会显示为“已修改”。

这仅发生在主题组件中，而不会发生在站点设置中。  
这仅发生在数字字段中。

示例（测试通过，使用 Discourse Kanban，但可重现于任何具有数字设置的主题组件，我所做的只是单击字段然后单击字段旁边）

![firefox_ahBwQZMGB2](https://global.discourse-cdn.com/meta/original/3X/0/d/0d3223041d6ab1982cd4b5700947b53fcc2414dc.gif)

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [2022年一月31日 23:53 UTC](https://meta.discourse.org/t/clicking-on-numeric-theme-component-parameter-will-show-it-as-modified/216598/2 "2022-01-31T23:53:42Z")

</div>

是因为代码中设置为 3 而不是 “3” 吗？

> <https://github.com/discourse/discourse-kanban-theme/blob/0b745f5ca3ec5bfeb348afa30da5571b01a51e18/settings.yml#L25>

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2022年二月1日 06:53 UTC](https://meta.discourse.org/t/clicking-on-numeric-theme-component-parameter-will-show-it-as-modified/216598/3 "2022-02-01T06:53:12Z")

</div>

可能与之相关，我猜我们在验证器中遗漏了一个类型转换。

这是一个小错误，但修复它将是很好的。

至少我将为此加上 #pr-welcome 标签。
