Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readd Number DefaultValue #2375

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/forms/RFFComponents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,11 @@ export const RFFCFormInput = ({
spellCheck = true,
autoFocus = false,
hiddenValue,
defaultValue,
onChange,
}) => {
return (
<Field initialValue={hiddenValue} name={name} validate={validate}>
<Field defaultValue={defaultValue} initialValue={hiddenValue} name={name} validate={validate}>
{({ input, meta }) => {
const handleChange = onChange
? (e) => {
Expand Down
12 changes: 8 additions & 4 deletions src/data/standards.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@
{
"type": "number",
"name": "standards.NudgeMFA.snoozeDurationInDays",
"label": "Number of days to allow users to skip registering Authenticator (0-14, default is 1)"
"label": "Number of days to allow users to skip registering Authenticator (0-14, default is 1)",
"default": 1
}
],
"label": "Sets the state for the request to setup Authenticator",
Expand Down Expand Up @@ -578,7 +579,8 @@
"type": "number",
"name": "standards.EnableMailTips.MailTipsLargeAudienceThreshold",
"label": "Number of recipients to trigger the large audience MailTip (Default is 25)",
"placeholder": "Enter a profile name"
"placeholder": "Enter a profile name",
"default": 25
}
],
"label": "Enable all MailTips",
Expand Down Expand Up @@ -634,12 +636,14 @@
{
"type": "number",
"name": "standards.SendReceiveLimitTenant.SendLimit",
"label": "Send limit in MB (Default is 35)"
"label": "Send limit in MB (Default is 35)",
"default": 35
},
{
"type": "number",
"name": "standards.SendReceiveLimitTenant.ReceiveLimit",
"label": "Receive Limit in MB (Default is 36)"
"label": "Receive Limit in MB (Default is 36)",
"default": 36
}
],
"label": "Set send/receive size limits",
Expand Down
1 change: 1 addition & 0 deletions src/views/tenant/standards/ListAppliedStandards.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ const ApplyNewStandard = () => {
className="mb-3"
name={component.name}
label={component.label}
defaultValue={component.default}
/>
)}
{component.type === 'boolean' && (
Expand Down
Loading