Commit f87de5b6 authored by Yohan Boniface's avatar Yohan Boniface

Fix label parent reference

parent 0aa42dfd
......@@ -176,7 +176,7 @@ L.FormBuilder.Element = L.Class.extend({
buildLabel: function () {
if (this.options.label) {
this.label = L.DomUtil.create('label', '', this.builder.parentNode);
this.label = L.DomUtil.create('label', '', this.parentNode);
this.label.innerHTML = this.options.label;
}
},
......
{
"name": "leaflet-formbuilder",
"version": "0.2.0",
"version": "0.2.1",
"description": "Helpers to build forms in Leaflet",
"main": "Leaflet.FormBuilder.js",
"scripts": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment