haya-select 1.0.30 → 1.0.31

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.30",
3
+ "version": "1.0.31",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "debounce": "^1.2.1",
14
14
  "diggerize": "^1.0.4",
15
15
  "fetching-object": "^1.0.1",
16
- "set-state-compare": "^1.0.42"
16
+ "set-state-compare": "^1.0.43"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "prop-types": ">= 15.7.2",
@@ -357,7 +357,9 @@ export default memo(shapeComponent(class HayaSelect extends ShapeComponent {
357
357
  focusTextInput = () => digg(this.tt.searchTextInputRef, "current").focus()
358
358
 
359
359
  setOptionsPosition() {
360
- if (!this.isActive()) return // Debounce after un-mount handeling.
360
+ if (!this.isActive()) {
361
+ return // Debounce after un-mount handeling.
362
+ }
361
363
 
362
364
  this.setOptionsPositionBelow()
363
365
  this.setOptionsPositionAboveIfOutsideScreen()
@@ -10,7 +10,7 @@ export default memo(shapeComponent(class OptionGroup extends ShapeComponent {
10
10
  render() {
11
11
  return (
12
12
  <div className="haya-select--option-group">
13
- {option.text}
13
+ {this.props.option.text}
14
14
  </div>
15
15
  )
16
16
  }