Skip to content

Commit 01e9160

Browse files
committed
chore: update version to 1.9.5-beta-8 in package.json and package-lock.json; modify PhoneInput onChange handler to include country change detection
1 parent af712a5 commit 01e9160

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.9.5-beta-7",
3+
"version": "1.9.5-beta-8",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/PhoneInput/PhoneInput.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const PhoneInput = ({
2727
hasValueInitialized.current = true
2828
return
2929
}
30-
onChange(data.phone)
30+
onChange(data.phone, data.country.iso2 !== country.iso2)
3131
},
3232
})
3333

src/Shared/Components/PhoneInput/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CountrySelect } from '../CountrySelect'
33

44
export interface PhoneInputProps {
55
phoneValue: string
6-
onChange: (value: string) => void
6+
onChange: (value: string, hasCountryChanged: boolean) => void
77
error?: string | null
88
countryCodeSelectName: string
99
phoneNumberInputName: string

0 commit comments

Comments
 (0)