Skip to content

Commit

Permalink
Merge pull request #38 from bahmni-msf/BAH-1131
Browse files Browse the repository at this point in the history
Supriya, Vinisha | BAH-1131 | MOBN-1559 | Add step attribute to numeric input field
  • Loading branch information
buvaneswari-arun committed Feb 4, 2021
2 parents 42239df + ed2e265 commit 624f1d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 624f1d2

Please sign in to comment.