Skip to content

Commit 3481192

Browse files
committed
Fix the build
1 parent d6b885a commit 3481192

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/questionEditors/questionEditorDefinition.ts

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export class SurveyQuestionEditorDefinition {
2626
{ name: "visibleIf", tab: "logic" },
2727
{ name: "enableIf", tab: "logic" },
2828
{ name: "requiredIf", tab: "logic" },
29+
{ name: "defaultValueExpression", tab: "logic" },
2930
{ name: "page", tab: "layout" },
3031
{ name: "startWithNewLine", tab: "layout" },
3132
{ name: "hideNumber", tab: "layout" },
@@ -228,6 +229,8 @@ export class SurveyQuestionEditorDefinition {
228229
"max",
229230
"step",
230231
"placeHolder",
232+
{ name: "minValueExpression", tab: "logic" },
233+
{ name: "maxValueExpression", tab: "logic" },
231234
{ name: "size", tab: "layout" },
232235
{ name: "maxLength", tab: "validation" },
233236
{ name: "textUpdateMode", tab: "data" },

tests/questionEditorsTests.ts

-6
Original file line numberDiff line numberDiff line change
@@ -1019,11 +1019,6 @@ QUnit.test(
10191019
);
10201020

10211021
QUnit.test("Add property into existing cagetory", function (assert) {
1022-
var defaultValueExpressionProp = Survey.Serializer.findProperty(
1023-
"question",
1024-
"defaultValueExpression"
1025-
);
1026-
if (!!defaultValueExpressionProp) defaultValueExpressionProp.visible = false;
10271022
Survey.Serializer.addProperty("question", {
10281023
name: "name2",
10291024
category: "general",
@@ -1063,7 +1058,6 @@ QUnit.test("Add property into existing cagetory", function (assert) {
10631058
"visibleIf2",
10641059
"Property added into logic correctly"
10651060
);
1066-
if (!!defaultValueExpressionProp) defaultValueExpressionProp.visible = true;
10671061
Survey.Serializer.removeProperty("question", "name2");
10681062
Survey.Serializer.removeProperty("question", "visibleIf2");
10691063
Survey.Serializer.removeProperty("question", "enableIf2");

0 commit comments

Comments
 (0)