Compare commits

..

No commits in common. "e3d316c418ed349182d8df5015bf672fe4b4aa2d" and "1471bf94dd5755f76adb66b146a3be1f4f34968a" have entirely different histories.

View File

@ -42,13 +42,6 @@ export const LocationInput = memo(
const onInputChange: InputProps['onChange'] = async (e) => { const onInputChange: InputProps['onChange'] = async (e) => {
const newInputValue = e.target.value; const newInputValue = e.target.value;
if (
isValidLocation(newInputValue) &&
(await isRealLocation(ymaps, newInputValue))
) {
onChange(newInputValue);
} else {
setInputValue(newInputValue); setInputValue(newInputValue);
if (newInputValue.trim().length > 3) { if (newInputValue.trim().length > 3) {
@ -64,7 +57,6 @@ export const LocationInput = memo(
} }
setIsSuggestionsPanelOpen(suggestions.length > 1); setIsSuggestionsPanelOpen(suggestions.length > 1);
}
}; };
const onFocus: InputProps['onFocus'] = () => { const onFocus: InputProps['onFocus'] = () => {
@ -111,7 +103,7 @@ export const LocationInput = memo(
{...props} {...props}
ref={ref} ref={ref}
onBlur={onBlur} onBlur={onBlur}
value={inputValue ?? value} value={inputValue}
onChange={onInputChange} onChange={onInputChange}
onFocus={onFocus} onFocus={onFocus}
placeholder={t('placeholder')} placeholder={t('placeholder')}