File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
use-initial-focus/stories Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export const UseFocusTrap = function () {
17
17
}
18
18
return (
19
19
< Fragment >
20
- < Textbox name = "text" onValueInput = { setValue } value = { value } />
20
+ < Textbox onValueInput = { setValue } value = { value } />
21
21
< VerticalSpace space = "small" />
22
22
< Button fullWidth onClick = { handleClick } >
23
23
Submit
Original file line number Diff line number Diff line change @@ -17,12 +17,7 @@ export const UseInitialFocus = function () {
17
17
}
18
18
return (
19
19
< Fragment >
20
- < Textbox
21
- { ...initialFocus }
22
- name = "text"
23
- onValueInput = { setValue }
24
- value = { value }
25
- />
20
+ < Textbox { ...initialFocus } onValueInput = { setValue } value = { value } />
26
21
< VerticalSpace space = "small" />
27
22
< Button fullWidth onClick = { handleClick } >
28
23
Submit
You can’t perform that action at this time.
0 commit comments