From 3457f92fbf9a695565204757096bce46c617ccee Mon Sep 17 00:00:00 2001 From: Tobias Date: Tue, 12 May 2020 20:11:47 +0200 Subject: [PATCH] Fix: Profile params of type 'select' ignored default value from profile --- js/control/Profile.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/control/Profile.js b/js/control/Profile.js index 8dba682..2c17ccd 100644 --- a/js/control/Profile.js +++ b/js/control/Profile.js @@ -260,6 +260,9 @@ BR.Profile = L.Evented.extend({ Object.keys(paramValues).forEach(function(paramValue) { var option = document.createElement('option'); option.value = paramValue; + if (paramValue == params[param].value) { + option.selected = true; + } option.append(paramValues[paramValue]); select.appendChild(option); });