-
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
feature request
It would be nice to specify focus implementation. For example to make smooth scroll to element + Npx above it before focusing:
import createDecorator from 'final-form-focus'
const onFocus = input => {
const { top } = getOffset(input);
const scrollTop = top - 50;
window.scrollTo({
top: scrollTop,
behavior: 'smooth',
});
input.focus();
}
const focusOnErrors = createDecorator(null, null, onFocus)renatohlf, ArturBaybulatov, AndyOGo, mattrabe and 2u4u
Metadata
Metadata
Assignees
Labels
No labels