@bolttech/molecules-dropdown 0.31.0 → 0.31.1

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.
Files changed (2) hide show
  1. package/index.cjs +5 -0
  2. package/package.json +1 -1
package/index.cjs CHANGED
@@ -2528,6 +2528,11 @@ const ReusableDropdownComponent = _a => {
2528
2528
  onFocus && onFocus(event);
2529
2529
  },
2530
2530
  onBlur: event => {
2531
+ var _a, _b;
2532
+ if ((_a = event.relatedTarget) === null || _a === void 0 ? void 0 : _a.contains(event.currentTarget)) {
2533
+ (_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.focus();
2534
+ return;
2535
+ }
2531
2536
  setSelectedOptionOnInputValue();
2532
2537
  setShowSelectComponent(false);
2533
2538
  onBlur && onBlur(event);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bolttech/molecules-dropdown",
3
- "version": "0.31.0",
3
+ "version": "0.31.1",
4
4
  "main": "./index.cjs",
5
5
  "type": "commonjs",
6
6
  "types": "./src/index.d.ts",