Skip to content

Commit

Permalink
Use "-unwrapped" prefix #8143
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov committed Apr 22, 2024
1 parent 004c2ae commit 6add158
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/question.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,7 @@ export class Question extends SurveyElement<Question>
}
public addConditionObjectsByContext(objects: Array<IConditionObject>, context: any): void {
objects.push({
name: this.getValueName(),
name: this.getFilteredName(),
text: this.processedTitle,
question: this,
});
Expand Down
2 changes: 1 addition & 1 deletion src/question_checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export class QuestionCheckboxModel extends QuestionCheckboxBase {
public getFilteredName(): any {
let res = super.getFilteredName();
if(this.hasFilteredValue) {
res += "#value";
res += "-unwrapped";
}
return res;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/question_baseselecttests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ QUnit.test("checkbox vs valuePropertyName, use in expression", (assert) => {
{
type: "text",
name: "q2",
visibleIf: "{q1#value} allof ['apple', 'orange']"
visibleIf: "{q1-unwrapped} allof ['apple', 'orange']"
}
]
});
Expand Down

0 comments on commit 6add158

Please sign in to comment.