@xsolla/xui-multi-select 0.70.0 → 0.71.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.
package/native/index.js CHANGED
@@ -2007,7 +2007,9 @@ var useMultiSelectControl = ({
2007
2007
  const savedWidthsRef = (0, import_react12.useRef)(null);
2008
2008
  const itemsRef = (0, import_react12.useRef)(null);
2009
2009
  const [itemsWidth, setItemsWidth] = (0, import_react12.useState)(0);
2010
- const [selectedContent, setSelectedContent] = (0, import_react12.useState)(null);
2010
+ const [selectedContent, setSelectedContent] = (0, import_react12.useState)(
2011
+ null
2012
+ );
2011
2013
  const isPlaceholder = !selectedItems || selectedItems.length === 0;
2012
2014
  (0, import_react12.useEffect)(() => {
2013
2015
  if (!containerRef.current) return;
@@ -2033,8 +2035,10 @@ var useMultiSelectControl = ({
2033
2035
  if (!prev) return true;
2034
2036
  if (prev.variant !== widthsDependencies.variant) return true;
2035
2037
  if (prev.size !== widthsDependencies.size) return true;
2036
- if (prev.removeTagsButtons !== widthsDependencies.removeTagsButtons) return true;
2037
- if (prev.stateList.length !== widthsDependencies.stateList.length) return true;
2038
+ if (prev.removeTagsButtons !== widthsDependencies.removeTagsButtons)
2039
+ return true;
2040
+ if (prev.stateList.length !== widthsDependencies.stateList.length)
2041
+ return true;
2038
2042
  let i = 0;
2039
2043
  for (const v of prev.stateList) {
2040
2044
  if (v !== widthsDependencies.stateList[i]) return true;