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)
feature request
It would be nice to specify focus implementation. For example to make smooth scroll to element + Npx above it before focusing: