haya-select 1.0.55 → 1.0.57

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haya-select",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -164,7 +164,7 @@ export default memo(shapeComponent(class HayaSelect extends ShapeComponent {
164
164
 
165
165
  return foundOption
166
166
  })
167
- } else if (this.props.options == "function" && this.props.values) {
167
+ } else if (typeof this.props.options == "function" && this.props.values) {
168
168
  this.setCurrentFromGivenValues()
169
169
  } else if (this.props.values) {
170
170
  return this.p.values.map((value) => ({value}))
@@ -795,6 +795,8 @@ export default memo(shapeComponent(class HayaSelect extends ShapeComponent {
795
795
  const currentValues = currentOptions?.map((currentOption) => currentOption.value)
796
796
  const stateValues = this.s.currentOptions?.map((currentOption) => currentOption.value)
797
797
 
798
+ console.log("setCurrentFromGivenValues", {stateValues})
799
+
798
800
  if (anythingDifferent(currentValues, stateValues)) {
799
801
  this.setState({currentOptions})
800
802
  }