From ca7257658c87a01d32c647d76997382590e5e258 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 5 Oct 2023 18:15:21 +0200 Subject: [PATCH] Make that Range inherit from FloatInput Otherwise we store a string --- umap/static/umap/js/umap.forms.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umap/static/umap/js/umap.forms.js b/umap/static/umap/js/umap.forms.js index 0d522ff5..6faf6531 100644 --- a/umap/static/umap/js/umap.forms.js +++ b/umap/static/umap/js/umap.forms.js @@ -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 () {