@bitrise/bitkit 12.23.3 → 12.23.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "12.23.3",
4
+ "version": "12.23.4",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -229,6 +229,9 @@ function useDropdown<T>({
229
229
  if (currentOption) {
230
230
  setFormLabel(currentOption.label);
231
231
  setSelectedIndex(currentOption.index);
232
+ } else {
233
+ setFormLabel(null);
234
+ setSelectedIndex(null);
232
235
  }
233
236
  }, [refdChildren, formValue]);
234
237
  return {