@bitrise/bitkit 13.225.0 → 13.227.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "13.225.0",
4
+ "version": "13.227.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -195,8 +195,8 @@ const DropdownTheme = {
195
195
  fontSize: '2',
196
196
  paddingLeft: rem('16'),
197
197
  paddingRight: rem('16'),
198
- paddingTop: isMultiSelect ? rem('8') : '0',
199
- paddingBottom: isMultiSelect ? rem('8') : '0',
198
+ paddingTop: isMultiSelect ? rem('8') : undefined,
199
+ paddingBottom: isMultiSelect ? rem('8') : undefined,
200
200
  },
201
201
  };
202
202
  },
@@ -217,9 +217,12 @@ function useDropdown<T>({
217
217
 
218
218
  return args.value;
219
219
  });
220
- close();
220
+
221
+ if (!isMultiSelect) {
222
+ close();
223
+ }
221
224
  },
222
- [close, setFormValue],
225
+ [close, isMultiSelect, setFormValue],
223
226
  );
224
227
  const context = useMemo(
225
228
  () => ({