Skip to content

Commit 830be05

Browse files
author
Gianmarco Manni
committed
x
1 parent dbab026 commit 830be05

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/lib/components/TelephoneNumberInput/TelephoneNumberAutocomplete.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,8 @@ const TelephoneNumberAutocomplete = <T extends FieldValues>(props: TelephoneNumb
5353
}
5454
}}
5555
onChange={(_, value, reason) => {
56-
if (reason === "clear") {
57-
setIsOpen(true);
58-
return;
59-
}
60-
6156
// cannot be cleared
62-
if (value === null) {
57+
if (value === null || reason === "clear") {
6358
return;
6459
}
6560

0 commit comments

Comments
 (0)