Merged in fix/disable-autocomlete-country-and-phone (pull request #2107)
fix: disable auto-complete for Country and Phone inputs * fix(SW-2765): disable auto-complete for Country and Phone inputs Approved-by: Linus Flood
This commit is contained in:
committed by
Joakim Jäderberg
parent
31d75ffa74
commit
a8fa32a802
@@ -30,7 +30,8 @@ import type { CountryProps } from "./country"
|
|||||||
const prioCountryCode = ["DE", "DK", "FI", "NO", "SE"]
|
const prioCountryCode = ["DE", "DK", "FI", "NO", "SE"]
|
||||||
|
|
||||||
export default function CountrySelect({
|
export default function CountrySelect({
|
||||||
autoComplete = "country-name",
|
// hack used since chrome does not respect autocomplete="off"
|
||||||
|
autoComplete = "nope",
|
||||||
className = "",
|
className = "",
|
||||||
label,
|
label,
|
||||||
name = "country",
|
name = "country",
|
||||||
|
|||||||
@@ -141,7 +141,8 @@ export default function Phone({
|
|||||||
>
|
>
|
||||||
<AriaInputWithLabel
|
<AriaInputWithLabel
|
||||||
{...field}
|
{...field}
|
||||||
autoComplete="tel-national"
|
// hack used since chrome does not respect autocomplete="off"
|
||||||
|
autoComplete="nope"
|
||||||
id={field.name}
|
id={field.name}
|
||||||
label={label}
|
label={label}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
|
|||||||
Reference in New Issue
Block a user