@hestia-earth/ui-components 0.31.19 → 0.31.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9263,7 +9263,7 @@ const focusFirstGroupError = (element) => {
|
|
|
9263
9263
|
const focusFirstError = (element) => {
|
|
9264
9264
|
const firstError = (element.querySelectorAll('.is-error-danger') ||
|
|
9265
9265
|
element.querySelectorAll('.is-error-warning'))?.[0];
|
|
9266
|
-
return firstError ? firstError.scrollIntoView() : focusFirstGroupError(element);
|
|
9266
|
+
return firstError ? firstError.scrollIntoView({ block: 'center' }) : focusFirstGroupError(element);
|
|
9267
9267
|
};
|
|
9268
9268
|
class FilesFormComponent {
|
|
9269
9269
|
constructor() {
|