@atomsolution/sdk-merchant 1.8.3 → 1.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.
@@ -57505,7 +57505,11 @@ const CustomDropdown = ({
57505
57505
  "button",
57506
57506
  {
57507
57507
  type: "button",
57508
- onClick: () => setIsOpen(!isOpen),
57508
+ onMouseDown: (e) => e.stopPropagation(),
57509
+ onClick: (e) => {
57510
+ e.stopPropagation();
57511
+ setIsOpen(!isOpen);
57512
+ },
57509
57513
  className: "flex items-center justify-between w-full bg-white border border-[#E8E8E8] rounded-lg px-3 py-[8px] text-sm focus:outline-none focus:border-blue-400 transition-colors",
57510
57514
  children: [
57511
57515
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx("span", { className: !selectedOption ? "text-gray-400" : "text-gray-900", children: selectedOption ? selectedOption.label : placeholder }),
@@ -57536,7 +57540,10 @@ const CustomDropdown = ({
57536
57540
  "button",
57537
57541
  {
57538
57542
  type: "button",
57539
- onClick: () => {
57543
+ onMouseDown: (e) => e.stopPropagation(),
57544
+ onClick: (e) => {
57545
+ e.preventDefault();
57546
+ e.stopPropagation();
57540
57547
  onChange(option.value);
57541
57548
  setIsOpen(false);
57542
57549
  },