Skip to content

Commit

Permalink
bump the z-index of amount editor
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul committed Oct 26, 2023
1 parent f363903 commit 21a965d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/AmountEditable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -696,16 +696,15 @@ export const AmountEditable: ParentComponent<{
<InlineAmount amount={maxOrLocalSats()} />
</Show>
<img src={pencil} alt="Edit" />
{/* {props.children} */}
</button>
<Dialog.Portal>
{/* <Dialog.Overlay class={OVERLAY} /> */}
<div class={DIALOG_POSITIONER}>
<Dialog.Content
class={DIALOG_CONTENT}
// Should always be on top, even when nested in other dialogs
classList={{ "z-50": true }}
onEscapeKeyDown={handleClose}
>
{/* TODO: figure out how to submit on enter */}
<div class="flex w-full justify-end">
<button
onClick={handleClose}
Expand All @@ -715,7 +714,6 @@ export const AmountEditable: ParentComponent<{
<img src={close} alt="Close" />
</button>
</div>
{/* <form onSubmit={handleSubmit} class="text-black"> */}
<form
onSubmit={handleSubmit}
class="absolute -z-10 opacity-0"
Expand Down

0 comments on commit 21a965d

Please sign in to comment.