Use step=any by default for FloatInput

This is fixed in Leaflet.FormBuilder itself
This commit is contained in:
Yohan Boniface 2023-11-23 12:29:52 +01:00
parent 0a900bdd3b
commit 4936a97218
2 changed files with 3 additions and 3 deletions

View file

@ -42,7 +42,7 @@
"leaflet-contextmenu": "^1.4.0", "leaflet-contextmenu": "^1.4.0",
"leaflet-editable": "^1.2.0", "leaflet-editable": "^1.2.0",
"leaflet-editinosm": "0.2.3", "leaflet-editinosm": "0.2.3",
"leaflet-formbuilder": "0.2.7", "leaflet-formbuilder": "0.2.9",
"leaflet-fullscreen": "1.0.2", "leaflet-fullscreen": "1.0.2",
"leaflet-hash": "0.2.1", "leaflet-hash": "0.2.1",
"leaflet-i18n": "0.3.3", "leaflet-i18n": "0.3.3",

View file

@ -680,8 +680,8 @@ L.U.Marker = L.Marker.extend({
appendEditFieldsets: function (container) { appendEditFieldsets: function (container) {
L.U.FeatureMixin.appendEditFieldsets.call(this, container) L.U.FeatureMixin.appendEditFieldsets.call(this, container)
const coordinatesOptions = [ const coordinatesOptions = [
['_latlng.lat', { handler: 'FloatInput', label: L._('Latitude'), step: 'any' }], ['_latlng.lat', { handler: 'FloatInput', label: L._('Latitude') }],
['_latlng.lng', { handler: 'FloatInput', label: L._('Longitude'), step: 'any' }], ['_latlng.lng', { handler: 'FloatInput', label: L._('Longitude') }],
] ]
const builder = new L.U.FormBuilder(this, coordinatesOptions, { const builder = new L.U.FormBuilder(this, coordinatesOptions, {
callback: function () { callback: function () {