Merge develop

This commit is contained in:
Pieter Vander Vennet 2021-07-23 19:14:10 +02:00
commit cc22c5b0fb
17 changed files with 537 additions and 134 deletions

View file

@ -333,12 +333,15 @@ export default class TagRenderingQuestion extends Combine {
}
const tagsData = tags.data;
const feature = State.state.allElements.ContainingFeatures.get(tagsData.id)
const input: InputElement<string> = ValidatedTextField.InputForType(configuration.freeform.type, {
isValid: (str) => (str.length <= 255),
country: () => tagsData._country,
location: [tagsData._lat, tagsData._lon],
mapBackgroundLayer: State.state.backgroundLayer,
unit: applicableUnit
unit: applicableUnit,
args: configuration.freeform.helperArgs,
feature: feature
});
input.GetValue().setData(tagsData[freeform.key] ?? freeform.default);