@aloudata/aloudata-design 2.8.3 → 2.8.4

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.
@@ -62,7 +62,10 @@ export default function Dropdown(props) {
62
62
  return;
63
63
  }
64
64
  if (!isOpenControlled) {
65
- setDropdownOpen(false);
65
+ // 修复关闭 dropdown 后,再次点击无法打开 dropdown 的问题,经测试 setTimeout 0 后可以修复
66
+ setTimeout(function () {
67
+ setDropdownOpen(false);
68
+ }, 0);
66
69
  }
67
70
  }, [isOpenControlled, menu]);
68
71
  var onDropdownOpenChange = useCallback(function (isDropdownOpen) {
@@ -97,7 +100,7 @@ export default function Dropdown(props) {
97
100
  placement: placement,
98
101
  dropdownRender: menuRender,
99
102
  destroyPopupOnHide: destroyPopupOnHide,
100
- open: isOpenControlled ? open : dropdownOpen,
103
+ open: !!(isOpenControlled ? open : dropdownOpen),
101
104
  onOpenChange: onDropdownOpenChange
102
105
  }, antdDropdownProps), children);
103
106
  }
@@ -66,7 +66,7 @@ export default function MemberSelection(props) {
66
66
  }, /*#__PURE__*/React.createElement("div", {
67
67
  className: "ald-member-picker-member-list-inner",
68
68
  style: {
69
- width: width,
69
+ width: multiple ? width : undefined,
70
70
  overflow: 'hidden'
71
71
  }
72
72
  }, userList.map(function (user) {
@@ -115,7 +115,7 @@ var UserGroupSelection = function UserGroupSelection(_ref) {
115
115
  }, /*#__PURE__*/React.createElement("div", {
116
116
  className: "ald-member-picker-member-list-inner",
117
117
  style: {
118
- width: width,
118
+ width: multiple ? width : undefined,
119
119
  overflow: 'hidden'
120
120
  }
121
121
  }, filterUserList.map(function (userGroup) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "2.8.3",
3
+ "version": "2.8.4",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",