@experium/findy-form 1.2.53 → 1.2.54

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.
@@ -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 - 15,
233
+ top: invalidField.getBoundingClientRect().top + scrollContainerElement.scrollTop - invalidField.getBoundingClientRect().top - 15,
234
234
  behavior: 'smooth'
235
235
  });
236
236
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experium/findy-form",
3
- "version": "1.2.53",
3
+ "version": "1.2.54",
4
4
  "main": "./lib/index.js",
5
5
  "homepage": "https://experium.github.io/findy-form",
6
6
  "repository": "https://github.com/experium/findy-form",
@@ -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 - 15,
175
+ top: invalidField.getBoundingClientRect().top + scrollContainerElement.scrollTop - invalidField.getBoundingClientRect().top - 15,
176
176
  behavior: 'smooth'
177
177
  });
178
178
  } else {