Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Update FormLogin.tsx #608

Merged
merged 9 commits into from
Mar 2, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/shared/components/FieldInput/FieldInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type Props = {
placeholder?: string;
autoFocus?: boolean;
autoComplete?: 'off' | 'on';
type?: 'email' | 'text' | 'password' | 'number' | 'date' | 'week';
type?: 'email' | 'text' | 'password' | 'number' | 'date' | 'week' | 'tel';
rule?: (options: unknown) => () => unknown;
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
onKeyPress?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
Expand Down
1 change: 1 addition & 0 deletions packages/teleport/src/components/FormLogin/FormLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export default function LoginForm(props: Props) {
autoComplete="off"
value={token}
onChange={e => setToken(e.target.value)}
type="tel"
placeholder="123 456"
mb={0}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ exports[`auth2faType: otp rendering 1`] = `
class="c5"
color="text.onLight"
placeholder="123 456"
type="text"
type="tel"
value=""
/>
</div>
Expand Down