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

When clicking on a numeric theme component setting and leaving the field without modifying it, it will show as ‘modified’ until the screen is refreshed.

This only happens in theme components, not in site settings.
This only happens with numeric fields.

Example (tests-passed, with Discourse Kanban, but reproducible with any theme component that has a numeric setting, all I do is click in the field and click next to the field)

firefox_ahBwQZMGB2

4 个赞

Could it be because in the code it is set as 3 and not “3” ?

1 个赞

Likely related, I guess we are missing a cast somewhere in the validator.

Minor bug but will be nice to have it fixed.

At a minimum I am putting pr-welcome on this.

3 个赞