mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 22:15:47 +08:00
f2e1363f67
* Revert "FEATURE: Use native number fields for integer inputs (#24984)"
This reverts commit 8fce890ead
.
* 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> |