@loafmarkets/ui 0.1.425 → 0.1.426
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/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13846,9 +13846,20 @@ function AssetSelectorBar({
|
|
|
13846
13846
|
imageUrl,
|
|
13847
13847
|
badgeLabel,
|
|
13848
13848
|
tickerPrimary,
|
|
13849
|
-
compactName
|
|
13849
|
+
compactName,
|
|
13850
|
+
onOpenChange
|
|
13850
13851
|
}) {
|
|
13851
13852
|
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
|
|
13853
|
+
const openChangeRef = useRef(onOpenChange);
|
|
13854
|
+
openChangeRef.current = onOpenChange;
|
|
13855
|
+
const openSeenRef = useRef(false);
|
|
13856
|
+
useEffect(() => {
|
|
13857
|
+
if (!openSeenRef.current) {
|
|
13858
|
+
openSeenRef.current = true;
|
|
13859
|
+
return;
|
|
13860
|
+
}
|
|
13861
|
+
openChangeRef.current?.(isDropdownOpen);
|
|
13862
|
+
}, [isDropdownOpen]);
|
|
13852
13863
|
const [nameTip, setNameTip] = useState(null);
|
|
13853
13864
|
const anchorRef = useRef(null);
|
|
13854
13865
|
const [dropdownPos, setDropdownPos] = useState(null);
|