Skip to content

Commit

Permalink
Make that Range inherit from FloatInput
Browse files Browse the repository at this point in the history
Otherwise we store a string
  • Loading branch information
yohanboniface committed Oct 5, 2023
1 parent 3e54310 commit ca72576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umap/static/umap/js/umap.forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
return 'range'
},

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 () {
Expand Down

0 comments on commit ca72576

Please sign in to comment.