chore: disabling smooth scroll in env vars view

This commit is contained in:
Anoop M D 2024-09-23 17:50:55 +05:30 committed by GitHub
parent 4d820af4e0
commit 641f261733
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,7 +88,9 @@ const EnvironmentVariables = ({ environment, collection, setIsModified, original
useEffect(() => {
if (formik.dirty) {
addButtonRef.current?.scrollIntoView({ behavior: 'smooth' });
// Smooth scrolling to the changed parameter is temporarily disabled
// due to UX issues when editing the first row in a long list of environment variables.
// addButtonRef.current?.scrollIntoView({ behavior: 'smooth' });
}
}, [formik.values, formik.dirty]);