@experium/findy-form 1.2.54 → 1.2.55
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.
- package/dist/app.js +1 -1
- package/lib/components/Form.js +1 -1
- package/package.json +1 -1
- package/src/components/Form.js +1 -1
package/lib/components/Form.js
CHANGED
|
@@ -230,7 +230,7 @@ var Form = /*#__PURE__*/function (_Component) {
|
|
|
230
230
|
|
|
231
231
|
if (scrollContainerElement) {
|
|
232
232
|
scrollContainerElement.scrollTo({
|
|
233
|
-
top: invalidField.getBoundingClientRect().top + scrollContainerElement.scrollTop -
|
|
233
|
+
top: invalidField.getBoundingClientRect().top + scrollContainerElement.scrollTop - scrollContainerElement.getBoundingClientRect().top - 15,
|
|
234
234
|
behavior: 'smooth'
|
|
235
235
|
});
|
|
236
236
|
} else {
|
package/package.json
CHANGED
package/src/components/Form.js
CHANGED
|
@@ -172,7 +172,7 @@ class Form extends Component {
|
|
|
172
172
|
|
|
173
173
|
if (scrollContainerElement) {
|
|
174
174
|
scrollContainerElement.scrollTo({
|
|
175
|
-
top: invalidField.getBoundingClientRect().top + scrollContainerElement.scrollTop -
|
|
175
|
+
top: invalidField.getBoundingClientRect().top + scrollContainerElement.scrollTop - scrollContainerElement.getBoundingClientRect().top - 15,
|
|
176
176
|
behavior: 'smooth'
|
|
177
177
|
});
|
|
178
178
|
} else {
|