@mw-kit/mw-ui 1.2.4 → 1.2.5

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.js CHANGED
@@ -13645,6 +13645,10 @@ var Select = React__default.forwardRef(function (props, ref) {
13645
13645
  return clearTimeout(timeoutId);
13646
13646
  };
13647
13647
  }, [onSubmit]);
13648
+ React.useEffect(function () {
13649
+ if (!Array.isArray(props.value) || !open) return;
13650
+ setChecked([].concat(props.value));
13651
+ }, [props.value, open]);
13648
13652
  return React__default.createElement(Provider.Provider, {
13649
13653
  value: {
13650
13654
  props: props,