Skip to content

Commit

Permalink
Add autocomplete support
Browse files Browse the repository at this point in the history
  • Loading branch information
henck committed Aug 30, 2023
1 parent c901e82 commit dd6f490
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@independent-software/typeui",
"version": "1.1.41",
"version": "1.1.42",
"description": "TypeUI",
"keywords": [
"react",
Expand Down
2 changes: 2 additions & 0 deletions src/controls/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ interface IInputProps {
clock?: boolean;
/** Optional input maxlength */
maxLength?: number;
/** Optional autocomplete information (see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) */
autocomplete?: string;

// Events
/** Listeners are notified whenever the user interacts with the Input. */
Expand Down
3 changes: 2 additions & 1 deletion src/controls/Input/StandardInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class StandardInputBase extends React.Component<IInputProps> {
disabled={p.disabled}
type={p.type}
maxLength={p.maxLength}
autoComplete={p.autocomplete}
onChange={this.handleChange}
onFocus={this.props.onFocus}/>
)
Expand Down Expand Up @@ -128,4 +129,4 @@ const StandardInput = styled(StandardInputBase).attrs(p => ({
}
`;

export { StandardInput };
export { StandardInput }

0 comments on commit dd6f490

Please sign in to comment.