From 037414314874f628cbb5e6e41e7df4daad34405d Mon Sep 17 00:00:00 2001 From: ahtesham-quraish Date: Thu, 9 Mar 2023 14:56:38 +0500 Subject: [PATCH] fix: country dropdown issue on safari VAN-1317 --- src/register/registrationFields/CountryField.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/register/registrationFields/CountryField.jsx b/src/register/registrationFields/CountryField.jsx index b6e71a8c..6005a415 100644 --- a/src/register/registrationFields/CountryField.jsx +++ b/src/register/registrationFields/CountryField.jsx @@ -54,6 +54,10 @@ const CountryField = (props) => { value={countryName} key={country[COUNTRY_CODE_KEY]} onClick={(event) => onBlurHandler(event, true, countryName)} + /* This event will prevent the blur event to be fired, + as blur event is having higher priority than click event and restricts the click event. + */ + onMouseDown={(event) => event.preventDefault()} > {countryName.length > 30 ? countryName.substring(0, 30).concat('...') : countryName}