Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Set min property on interval input (#39)
Browse files Browse the repository at this point in the history
* Set a min of 1 on the interval input element

* Update snapshots for Frequencies tests
  • Loading branch information
dbbaughe authored Apr 23, 2019
1 parent f6a2191 commit 5d4fb11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Interval = () => (
isInvalid,
error: hasError,
}}
inputProps={{ icon: 'clock' }}
inputProps={{ icon: 'clock', min: 1 }}
/>
</EuiFlexItem>
<EuiFlexItem style={{ margin: '0px' }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ exports[`Frequencies renders FrequencyPicker 1`] = `
>
<input
class="euiFieldNumber euiFieldNumber--withIcon"
min="1"
name="period.interval"
type="number"
value="1"
Expand Down Expand Up @@ -380,6 +381,7 @@ exports[`Frequencies renders Interval 1`] = `
>
<input
class="euiFieldNumber euiFieldNumber--withIcon"
min="1"
name="period.interval"
type="number"
value="1"
Expand Down

0 comments on commit 5d4fb11

Please sign in to comment.