diff --git a/umap/static/umap/js/umap.forms.js b/umap/static/umap/js/umap.forms.js index 5fb8e231..072e5cf2 100644 --- a/umap/static/umap/js/umap.forms.js +++ b/umap/static/umap/js/umap.forms.js @@ -808,7 +808,7 @@ L.FormBuilder.Range = L.FormBuilder.Input.extend({ 'umap-field-datalist', this.getHelpTextParent() ) - datalist.id = `range-${this.options.label}` + datalist.id = `range-${this.options.label || this.name}` this.input.setAttribute('list', datalist.id) var options = '' for (var i = this.options.min; i <= this.options.max; i += this.options.step) { diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index ef81cc23..e60ef8ef 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -1651,7 +1651,7 @@ L.U.Map.include({ ], [ 'options.overlay.opacity', - { handler: 'Range', min: 0, max: 1, step: 'any', placeholder: L._('opacity') }, + { handler: 'Range', min: 0, max: 1, step: 0.1, label: L._('Opacity') }, ], ['options.overlay.tms', { handler: 'Switch', label: L._('TMS format') }], ]