Skip to content

Commit

Permalink
The Currency setting should appear only when Total value display styl…
Browse files Browse the repository at this point in the history
…e is 'currency' fix #7711 (#7712)
  • Loading branch information
andrewtelnov authored Jan 22, 2024
1 parent 0cf94a7 commit b4c6945
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/question_expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,9 @@ Serializer.addClass(
return getCurrecyCodes();
},
default: "USD",
visibleIf: (obj: QuestionExpressionModel): boolean => {
return obj.displayStyle === "currency";
}
},
{ name: "maximumFractionDigits:number", default: -1 },
{ name: "minimumFractionDigits:number", default: -1 },
Expand Down

0 comments on commit b4c6945

Please sign in to comment.