@experium/findy-form 1.2.52 → 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.
@@ -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 - scrollContainerElement.getBoundingClientRect().top - 15,
234
234
  behavior: 'smooth'
235
235
  });
236
236
  } else {
@@ -156,7 +156,7 @@ var Select = /*#__PURE__*/function (_Component) {
156
156
  var regionParent = (0, _ramda.prop)(settings.regionField, formValues);
157
157
  var countryParent = (0, _ramda.prop)(settings.countryField, formValues);
158
158
  var filteredOptions = (0, _ramda.filter)((0, _ramda.allPass)([function (item) {
159
- if (countryParent || countryParent) {
159
+ if (countryParent || regionParent) {
160
160
  var regionEqual = regionParent ? regionParent === item.region : true;
161
161
  var countryEqual = countryParent ? countryParent === item.country : true;
162
162
  return regionEqual && countryEqual;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experium/findy-form",
3
- "version": "1.2.52",
3
+ "version": "1.2.55",
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 - scrollContainerElement.getBoundingClientRect().top - 15,
176
176
  behavior: 'smooth'
177
177
  });
178
178
  } else {
@@ -112,7 +112,7 @@ class Select extends Component {
112
112
 
113
113
  const filteredOptions = filter(allPass([
114
114
  item => {
115
- if (countryParent || countryParent) {
115
+ if (countryParent || regionParent) {
116
116
  const regionEqual = regionParent ? regionParent === item.region : true;
117
117
  const countryEqual = countryParent ? countryParent === item.country : true;
118
118