Skip to content

Commit

Permalink
issue-5281 Updated line 592 useEffect() hook to have the proper setMa…
Browse files Browse the repository at this point in the history
…xLength for a full US based number to be entered by end user
  • Loading branch information
Wesley26 committed Apr 8, 2023
1 parent 9b20573 commit 2a7a149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Common/HelperInputFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ export const LegacyPhoneNumberField = (props: any) => {
const onChangeHandler = debounce(onChange, 500);

useEffect(() => {
setMaxLength(() => (value?.slice(4, 8) === "1800" ? 16 : 15));
setMaxLength(() => (value?.slice(4, 8) === "1800" ? 16 : 17));
}, [value]);

const handleChange = (
Expand Down

2 comments on commit 2a7a149

@Wesley26
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2023-04-08 at 1 16 06 AM

@Wesley26
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.