Skip to content

Commit

Permalink
fix(#1380): Modify step value on Input. Modify time documentation to …
Browse files Browse the repository at this point in the history
…use string.
  • Loading branch information
ArakTaiRoth committed Sep 22, 2023
1 parent c61f186 commit 5f24124
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions libs/docs/src/components/common/Input.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ export const DateTemplate = () => {
#### Time

export const TimeComponent = () => {
const [date, setDate] = useState(new Date());
const [date, setDate] = useState("12:12");
return <GoAInputTime name="timeExample" value={date} step={1} />;
};

Expand All @@ -793,7 +793,7 @@ export const TimeComponent = () => {
import { format } from "date-fns";
import { FormControl } from "@angular/forms";
export class MyComponent {
time = format(new Date(), "HH:mm:ss");
time = "12:12";
reactiveTimeFormCtrl = new FormControl(this.time);
}
`}
Expand All @@ -817,11 +817,11 @@ export const TimeComponent = () => {
<Tab label="React">
<CodeSnippet
code={`
const [date, setDate] = useState(new Date());
const [time, setTime] = useState<string>("12:12");
return (
<GoAInputTime
name="timeExample"
value={date}
value={time}
step={1}
/>
)
Expand Down
2 changes: 1 addition & 1 deletion libs/web-components/src/components/input/Input.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
export let arialabelledby: string = null;
export let min: string = "";
export let max: string = "";
export let step: number = 1;
export let step: number = 60;
export let prefix: string = "";
export let suffix: string = "";
export let debounce: number = 0;
Expand Down

0 comments on commit 5f24124

Please sign in to comment.