fis-component 0.1.16 → 0.1.17
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/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -74799,7 +74799,7 @@ function isMenuSize(value) {
|
|
|
74799
74799
|
return value === "sm" || value === "md";
|
|
74800
74800
|
}
|
|
74801
74801
|
|
|
74802
|
-
const FISSelect = forwardRef(({ className, style, size = "md", options, value, disabled = false, textLabel = "", iconLabel, required, negative, message, positive, multi, placeholder, placeholderSearch, loading, onChange, renderOption, onClickIconLabel, displayValue, multiDisplayText, searchValue, onSearchChange, portal, maxHeight, onPopupScroll, onOpen, hideChip, tooltipTitle, tooltipVariant = "primary", ...restProps }, ref) => {
|
|
74802
|
+
const FISSelect = forwardRef(({ className, style, size = "md", options, value, disabled = false, textLabel = "", iconLabel, required, negative, message, positive, multi, placeholder, placeholderSearch, loading, onChange, renderOption, onClickIconLabel, displayValue, multiDisplayText, searchValue, onSearchChange, portal = true, maxHeight, onPopupScroll, onOpen, hideChip, tooltipTitle, tooltipVariant = "primary", ...restProps }, ref) => {
|
|
74803
74803
|
const [isOpen, setIsOpen] = useState(false);
|
|
74804
74804
|
const [referenceElement, setReferenceElement] = useState(null);
|
|
74805
74805
|
const [popperElement, setPopperElement] = useState(null);
|
|
@@ -74831,8 +74831,8 @@ const FISSelect = forwardRef(({ className, style, size = "md", options, value, d
|
|
|
74831
74831
|
},
|
|
74832
74832
|
],
|
|
74833
74833
|
placement: "bottom-start",
|
|
74834
|
-
strategy: "fixed",
|
|
74835
|
-
}), []);
|
|
74834
|
+
strategy: portal ? "fixed" : "absolute",
|
|
74835
|
+
}), [portal]);
|
|
74836
74836
|
const { styles, attributes } = usePopper(referenceElement, popperElement, popperOptions);
|
|
74837
74837
|
const selectedItems = useMemo$1(() => {
|
|
74838
74838
|
const allItems = options.flatMap((group) => group.items);
|