Skip to content

Commit

Permalink
refactor: added property (#3434)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Merget <[email protected]>
  • Loading branch information
mfranzke and nmerget authored Jan 28, 2025
1 parent 81e0ebc commit 8448662
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/components/src/components/input/input.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ export default function DBInput(props: DBInputProps) {
readOnly={props.readOnly}
form={props.form}
pattern={props.pattern}
autocomplete={props.autocomplete}
// @ts-ignore
autoComplete={props.autocomplete}
// @ts-ignore
autoFocus={props.autofocus}
onInput={(event: ChangeEvent<HTMLInputElement>) =>
state.handleInput(event)
}
Expand Down
5 changes: 5 additions & 0 deletions packages/components/src/shared/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ export type GlobalProps = {
* React specific for render process.
*/
key?: string;

/**
* Before using please check for the [accessibility concerns](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus#accessibility_concerns)
*/
autofocus?: boolean;
};

export type GlobalState = {
Expand Down

0 comments on commit 8448662

Please sign in to comment.