Skip to content

Commit

Permalink
Merge pull request #666 from enatega/kashif-br
Browse files Browse the repository at this point in the history
max 15 characters for phone number
  • Loading branch information
ufumerfarooq67 authored Nov 28, 2024
2 parents 8aaf5b3 + 8ac54d8 commit f03753b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enatega-multivendor-admin/src/components/Rider/Rider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function Rider(props) {
const globalClasses = useGlobalStyles()

const handlePhoneInput = (e) => {
const value = e.target.value.replace(/[^0-9]/g, '');
const value = e.target.value.replace(/[^0-9]/g, '')?.slice(0, 15);
e.target.value = value;
};

Expand Down Expand Up @@ -304,7 +304,7 @@ function Rider(props) {
id="input-phone"
name="input-phone"
placeholder={t('PhoneNumber')}
type="number"
type="tel"
defaultValue={phone}
onInput={handlePhoneInput}
onBlur={event =>
Expand Down

0 comments on commit f03753b

Please sign in to comment.