Skip to content

Commit 83fe2e8

Browse files
Thomas GermanThomas German
authored andcommitted
Fix for percentage saving incorrectly
1 parent a2f1aba commit 83fe2e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/controls/dynamicForm/DynamicForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ export class DynamicForm extends React.Component<
209209
}
210210
}
211211
if (val.fieldType === "Number") {
212+
if (val.showAsPercentage) val.newValue /= 100;
212213
if (this.isEmptyNumOrString(val.newValue) && (val.minimumValue != null || val.maximumValue != null)) {
213214
val.newValue = val.fieldDefaultValue = null;
214215
}

0 commit comments

Comments
 (0)