Make that Range inherit from FloatInput

Otherwise we store a string
This commit is contained in:
Yohan Boniface 2023-10-05 18:15:21 +02:00
parent 3e54310c8d
commit ca7257658c

View file

@ -836,13 +836,13 @@ L.FormBuilder.OutlinkTarget = L.FormBuilder.MultiChoice.extend({
], ],
}) })
L.FormBuilder.Range = L.FormBuilder.Input.extend({ L.FormBuilder.Range = L.FormBuilder.FloatInput.extend({
type: function () { type: function () {
return 'range' return 'range'
}, },
value: function () { value: function () {
return L.DomUtil.hasClass(this.wrapper, 'undefined') ? undefined : this.input.value return L.DomUtil.hasClass(this.wrapper, 'undefined') ? undefined : L.FormBuilder.FloatInput.prototype.value.call(this)
}, },
buildHelpText: function () { buildHelpText: function () {