Refactoring of tagsFilters, fix conditional 'hideInAnswer'

This commit is contained in:
Pieter Vander Vennet 2021-03-22 02:17:00 +01:00
parent f176b92a9c
commit 1ffad21c62
5 changed files with 79 additions and 68 deletions

View file

@ -221,7 +221,7 @@ export default class TagRenderingQuestion extends UIElement {
if (mapping.hideInAnswer === true) {
return undefined;
}
if(typeof(mapping.hideInAnswer) !== "boolean" && mapping.hideInAnswer.matches(this._tags.data)){
if(typeof(mapping.hideInAnswer) !== "boolean" && mapping.hideInAnswer.matchesProperties(this._tags.data)){
return undefined;
}
return new FixedInputElement(