Skip to content

Commit

Permalink
fix: use innerRef in design-react-kit Input component
Browse files Browse the repository at this point in the history
`innerRef` provides a reference to the internal `<input>` element.
  • Loading branch information
tensor5 committed Feb 1, 2024
1 parent 6621e3b commit f8ad9a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/form/widgets/BaseInputWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const BaseInputWidget = (props) => {
validationText={
invalid ? get(formState.errors, name)?.message : undefined
}
ref={ref}
innerRef={ref}
id={id}
type={props.type}
required={props.required}
Expand Down
2 changes: 1 addition & 1 deletion src/app/form/widgets/ChoiceExpandedWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const ChoiceExpandedWidget = (props) => {
checked={inputProps.value === value}
disabled={props.schema.disabled}
onChange={(e) => inputProps.onChange(e)}
ref={ref}
innerRef={ref}
/>
<Label check htmlFor={`${name}-${value}`}>
{name}
Expand Down

0 comments on commit f8ad9a4

Please sign in to comment.