Optional phone numbers using PhoneNumberInput? #255
-
|
I'm working on a membership database, in which members have the option whether or not to share their phone numbers with us. I'd like to use Here's my (lightly anonymised) form code: I've tried without the phone_number_validator, but that doesn't make any difference since I believe it only affects server-side validation and the problem is on the client. I've also experimented with removing the Is there something I'm missing to allow empty phone numbers when |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
This was a bug until version 2.2.1. It has been fixed in ccd6c36 and is available in version 2.2.2. Please close this issue if it solves your problem. |
Beta Was this translation helpful? Give feedback.
This unfortunately is a regression when used in combination with Django-6.0. There the underlying widget is
<input type="tel" …>instead of<input type="text" …>.It is already fixed and will be available in version 2.2.3.