forked from MapComplete/MapComplete
Add a big update to the charging station theme
This commit is contained in:
parent
03d801733b
commit
96c11badaf
17 changed files with 2035 additions and 343 deletions
|
@ -53,6 +53,12 @@ export default class TagRenderingQuestion extends Combine {
|
|||
|
||||
|
||||
const inputElement: InputElement<TagsFilter> = TagRenderingQuestion.GenerateInputElement(configuration, applicableUnit, tags)
|
||||
|
||||
if(inputElement === undefined){
|
||||
console.trace("MultiAnswer failed", configuration)
|
||||
const inputElement0: InputElement<TagsFilter> = TagRenderingQuestion.GenerateInputElement(configuration, applicableUnit, tags)
|
||||
|
||||
}
|
||||
const save = () => {
|
||||
const selection = inputElement.GetValue().data;
|
||||
if (selection) {
|
||||
|
@ -176,6 +182,7 @@ export default class TagRenderingQuestion extends Combine {
|
|||
configuration: TagRenderingConfig,
|
||||
elements: InputElement<TagsFilter>[], freeformField: InputElement<TagsFilter>, ifNotSelected: TagsFilter[]): InputElement<TagsFilter> {
|
||||
const checkBoxes = new CheckBoxes(elements);
|
||||
|
||||
const inputEl = new InputElementMap<number[], TagsFilter>(
|
||||
checkBoxes,
|
||||
(t0, t1) => {
|
||||
|
@ -248,7 +255,6 @@ export default class TagRenderingQuestion extends Combine {
|
|||
elements.map(el => el.GetValue())
|
||||
);
|
||||
|
||||
|
||||
freeformField?.GetValue()?.addCallbackAndRun(value => {
|
||||
// The list of indices of the selected elements
|
||||
const es = checkBoxes.GetValue();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue