Skip to content

Commit

Permalink
Bug Fix - The number value was overidden in the edit form.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjandatta committed Dec 17, 2020
1 parent ec0cfb5 commit 7b7ad2f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/gd-sprest-bs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/gd-sprest-bs.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gd-sprest-bs",
"version": "6.5.1",
"version": "6.5.2",
"description": "SharePoint JavaScript, TypeScript and Web Components designed using the Bootstrap framework.",
"main": "build/index.js",
"typings": "@types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/components/field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ export const Field = (props: IFieldProps): IField => {
let numberProps = controlProps as Components.IFormControlPropsNumberField;

// Set the default value
numberProps.value = numberField.DefaultValue;
numberProps.value = numberProps.value == null ? numberField.DefaultValue : numberProps.value;

// See if this is a percentage
if (numberField.ShowAsPercentage) {
Expand Down

0 comments on commit 7b7ad2f

Please sign in to comment.