From 4936a97218528d2f75e0af0fd4ebe9187a95b605 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 23 Nov 2023 12:29:52 +0100 Subject: [PATCH] Use step=any by default for FloatInput This is fixed in Leaflet.FormBuilder itself --- package.json | 2 +- umap/static/umap/js/umap.features.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 33d3835c..14288c65 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "leaflet-contextmenu": "^1.4.0", "leaflet-editable": "^1.2.0", "leaflet-editinosm": "0.2.3", - "leaflet-formbuilder": "0.2.7", + "leaflet-formbuilder": "0.2.9", "leaflet-fullscreen": "1.0.2", "leaflet-hash": "0.2.1", "leaflet-i18n": "0.3.3", diff --git a/umap/static/umap/js/umap.features.js b/umap/static/umap/js/umap.features.js index 8815b6a0..46b611c8 100644 --- a/umap/static/umap/js/umap.features.js +++ b/umap/static/umap/js/umap.features.js @@ -680,8 +680,8 @@ L.U.Marker = L.Marker.extend({ appendEditFieldsets: function (container) { L.U.FeatureMixin.appendEditFieldsets.call(this, container) const coordinatesOptions = [ - ['_latlng.lat', { handler: 'FloatInput', label: L._('Latitude'), step: 'any' }], - ['_latlng.lng', { handler: 'FloatInput', label: L._('Longitude'), step: 'any' }], + ['_latlng.lat', { handler: 'FloatInput', label: L._('Latitude') }], + ['_latlng.lng', { handler: 'FloatInput', label: L._('Longitude') }], ] const builder = new L.U.FormBuilder(this, coordinatesOptions, { callback: function () {