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

Supriya, Vinisha | BAH-1131 | MOBN-1559 | Add step attribute to numeric input field #38

Merged
merged 1 commit into from Feb 4, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/NumericBox.jsx
Expand Up @@ -113,7 +113,7 @@ export class NumericBox extends Component {
ref={(elem) => {
this.input = elem;
}}
type="number"
step="any" type="number"
/>
<span className="form-builder-valid-range">
{NumericBoxDesigner.getRange(lowNormal, hiNormal)}
Expand All @@ -131,7 +131,7 @@ export class NumericBox extends Component {
ref={(elem) => {
this.input = elem;
}}
type="number"
step="any" type="number"
/>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/components/designer/NumericBoxDesigner.jsx
Expand Up @@ -17,7 +17,7 @@ export class NumericBoxDesigner extends Component {
if (NumericBoxDesigner.getRange(lowNormal, hiNormal) !== '') {
return (
<div className="fl">
<input type="number" />
<input step="any" type="number" />
<span className="form-builder-valid-range">
{NumericBoxDesigner.getRange(lowNormal, hiNormal)}
</span>
Expand All @@ -26,7 +26,7 @@ export class NumericBoxDesigner extends Component {
}
return (
<div className="fl">
{ !this.isComputed() && <input type="number" />}
{ !this.isComputed() && <input step="any" type="number" />}
</div>
);
}
Expand Down