Skip to content

Commit

Permalink
Merge pull request #209 from BoomTech-LLC/PF-338-default-browser-auto…
Browse files Browse the repository at this point in the history
…fill-in-publish

PF-338 fix: fixes autocomplete for email and phone fields
  • Loading branch information
Tigran0199 authored Oct 27, 2024
2 parents 728fee6 + 0ee9d85 commit b992f15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Body/Fields/Email/Email.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Fragment } from 'react'
import { Input } from 'boomform'

const Email = ({ label, classnameprefix, payment, ...props }) => {
return <Input {...props} type='email' />
return <Input {...props} type="email" name="email" autoComplete="email" />
}

export default Email
8 changes: 7 additions & 1 deletion src/Body/Fields/Phone/Phone.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ const Phone = ({
return (
<>
<DropDown id={id} defaultCountryCode={defaultCountryCode} />
<Input id={`${id}.phone`} type='phone' {...props} />
<Input
id={`${id}.phone`}
{...props}
type="phone"
name="phone"
autocomplete="tel"
/>
</>
)
}
Expand Down

0 comments on commit b992f15

Please sign in to comment.