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"]
|
||||
|
||||
export default function CountrySelect({
|
||||
autoComplete = "country-name",
|
||||
// hack used since chrome does not respect autocomplete="off"
|
||||
autoComplete = "nope",
|
||||
className = "",
|
||||
label,
|
||||
name = "country",
|
||||
|
||||
@@ -141,7 +141,8 @@ export default function Phone({
|
||||
>
|
||||
<AriaInputWithLabel
|
||||
{...field}
|
||||
autoComplete="tel-national"
|
||||
// hack used since chrome does not respect autocomplete="off"
|
||||
autoComplete="nope"
|
||||
id={field.name}
|
||||
label={label}
|
||||
onChange={handleChange}
|
||||
|
||||
Reference in New Issue
Block a user