mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 09:47:41 +08:00

* Revert "FEATURE: Use native number fields for integer inputs (#24984)" This reverts commit 8fce890eadacf5387e12f48db3ffe82211a1fddc. * FIX: Deprecate NumberField, use <input> instead This reverts #24984 as it introduced regressions (behavioral and visual) and instead it deprecates the NumberField component and replaces its uses in core with native `<input>` elements.
10 lines
361 B
Handlebars
10 lines
361 B
Handlebars
<input
|
|
{{on "input" (action (mut this.value) value="target.value")}}
|
|
value={{this.value}}
|
|
min={{if this.setting.min this.setting.min null}}
|
|
max={{if this.setting.max this.setting.max null}}
|
|
class="input-setting-integer"
|
|
/>
|
|
|
|
<SettingValidationMessage @message={{this.validationMessage}} />
|
|
<div class="desc">{{html-safe this.setting.description}}</div> |