Commit 81b9d193 authored by ThomasG77's avatar ThomasG77
Browse files

Manage in HTML 5 input attributes min, max and step

parent faf04d83
Loading
Loading
Loading
Loading
+9
Changes for Leaflet.FormBuilder.js: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -243,6 +243,15 @@ L.FormBuilder.Input = L.FormBuilder.Element.extend({
        if (this.options.placeholder) {
            this.input.placeholder = this.options.placeholder;
        }
        if (this.options.min != undefined) {
            this.input.min = this.options.min;
        }
        if (this.options.max != undefined) {
            this.input.max = this.options.max;
        }
        if (this.options.step) {
            this.input.step = this.options.step;
        }
        L.DomEvent.on(this.input, this.getSyncEvent(), this.sync, this);
        L.DomEvent.on(this.input, 'keydown', this.onKeyDown, this);
    },