sccoreui 5.9.76 → 5.9.78

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.
@@ -8925,5 +8925,5 @@ input[type="number"]::-webkit-outer-spin-button {
8925
8925
 
8926
8926
  .sc_multiSelect.p-inputwrapper-filled.p-multiselect.p-multiselect-clearable
8927
8927
  .p-multiselect-label {
8928
- padding-right: 2.5rem !important;
8928
+ padding-right: 2.8rem !important;
8929
8929
  }
@@ -9,7 +9,7 @@ const ScMultiSelect = (props) => {
9
9
  const multiselectElm = (0, react_1.useRef)(null);
10
10
  const [showCount, setShowCount] = (0, react_1.useState)(0);
11
11
  const checkOverflow = (0, react_1.useCallback)(() => {
12
- if (multiselectElm === null || multiselectElm === void 0 ? void 0 : multiselectElm.current) {
12
+ if (multiselectElm) {
13
13
  const dropDownItem = multiselectElm.current.getElement().children[1].children[0];
14
14
  const selectedItems = multiselectElm.current.getElement().children[1].children[0].children;
15
15
  const containerWidth = dropDownItem.offsetWidth;
@@ -28,7 +28,7 @@ const ScMultiSelect = (props) => {
28
28
  else {
29
29
  setShowCount(0);
30
30
  }
31
- }, [props === null || props === void 0 ? void 0 : props.value]);
31
+ }, [props === null || props === void 0 ? void 0 : props.value, multiselectElm]);
32
32
  (0, react_1.useEffect)(() => {
33
33
  checkOverflow();
34
34
  }, []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "5.9.76",
3
+ "version": "5.9.78",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",