@jobber/components 3.5.0 → 3.5.1-pre1.0

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.
@@ -477,8 +477,11 @@ function InternalChipDismissibleInput(props) {
477
477
  var _c = useInternalChipDismissibleInput(props), activeIndex = _c.activeIndex, allOptions = _c.allOptions, hasAvailableOptions = _c.hasAvailableOptions, inputRef = _c.inputRef, menuId = _c.menuId, menuOpen = _c.menuOpen, searchValue = _c.searchValue, generateDescendantId = _c.generateDescendantId, handleBlur = _c.handleBlur, handleOpenMenu = _c.handleOpenMenu, handleSearchChange = _c.handleSearchChange, handleCancelBlur = _c.handleCancelBlur, handleEnableBlur = _c.handleEnableBlur, handleSetActiveOnMouseOver = _c.handleSetActiveOnMouseOver, handleKeyDown = _c.handleKeyDown, handleSelectOption = _c.handleSelectOption, handleDebouncedSearch = _c.handleDebouncedSearch;
478
478
  var menuRef = useScrollToActive(activeIndex);
479
479
  var _d = useInView(), visibleChildRef = _d.ref, isInView = _d.isInView;
480
- var _e = useRepositionMenu(attachTo), popperStyles = _e.styles, attributes = _e.attributes, forceUpdate = _e.forceUpdate, setPositionedElementRef = _e.setPositionedElementRef;
481
- React.useEffect(function () { return forceUpdate === null || forceUpdate === void 0 ? void 0 : forceUpdate(); }, [allOptions]);
480
+ var _e = useRepositionMenu(attachTo), popperStyles = _e.styles, attributes = _e.attributes, update = _e.update, setPositionedElementRef = _e.setPositionedElementRef;
481
+ React.useEffect(function () {
482
+ if (menuOpen && update)
483
+ update();
484
+ }, [allOptions]);
482
485
  React.useEffect(function () {
483
486
  handleDebouncedSearch();
484
487
  return handleDebouncedSearch.cancel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "3.5.0",
3
+ "version": "3.5.1-pre1.0+aa339fab",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -84,5 +84,5 @@
84
84
  "> 1%",
85
85
  "IE 10"
86
86
  ],
87
- "gitHead": "84be991f33808a5f73d48618f65acb8a3cfb3bf3"
87
+ "gitHead": "aa339fab06544ffd6dbebf7a28c9d56fb2c7a14c"
88
88
  }