next-helios-fe 1.9.17 → 1.9.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.9.17",
3
+ "version": "1.9.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -178,14 +178,15 @@ export const MultipleSelect: React.FC<MultipleSelectProps> = ({
178
178
  disabled={disabled}
179
179
  value={tempValue.join(", ")}
180
180
  onChange={(e) => {}}
181
- readOnly={readOnly ?? false}
182
181
  onClick={(e) => {
183
182
  e.preventDefault();
184
- setOpenDropdown(true);
185
183
  dropdownTriggerRef.current?.click();
186
184
  setDropdownWidth(
187
185
  inputRef?.current?.getBoundingClientRect()?.width || 0
188
186
  );
187
+ if (!readOnly) {
188
+ setOpenDropdown(true);
189
+ }
189
190
  }}
190
191
  onKeyDown={(e) => {
191
192
  if (e.key === "Enter") {
@@ -114,15 +114,16 @@ export const Select: React.FC<SelectProps> = ({
114
114
  ? menus.find((item) => item.value === tempValue)?.label
115
115
  : ""
116
116
  }
117
- readOnly={readOnly ?? false}
118
117
  onChange={(e) => {}}
119
118
  onClick={(e) => {
120
119
  e.preventDefault();
121
- setOpenDropdown(true);
122
120
  dropdownTriggerRef.current?.click();
123
121
  setDropdownWidth(
124
122
  inputRef?.current?.getBoundingClientRect()?.width || 0
125
123
  );
124
+ if (!readOnly) {
125
+ setOpenDropdown(true);
126
+ }
126
127
  }}
127
128
  onKeyDown={(e) => {
128
129
  if (e.key === "Enter") {