Skip to content

fix(ui): making scroll to invalid field work with more types

Dan Visel requested to merge more-scroll-to-field-fixes into main

The scroll to invalid field only works if innerRefProp is passed to the field component; this is a default prop on the PubSweet fields. This was not being passed to some newer components, so scroll didn't work if one of those components was the first invalid field. This model would need to be used for future new fields that are being added.

(This is discussed in #692 (closed).)

Edited by Dan Visel

Merge request reports