Merge pull request #8 from deus-labs/metadata-modal-closing-unexpectedly

Fix: clicking inside the modal window closes the modal unexpectedly
This commit is contained in:
Arda Nakışçı 2022-07-29 09:07:52 +03:00 committed by GitHub
commit 7a46df8161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,7 @@ export const MetadataModal = (props: MetadataModalProps) => {
<div>
<input className="modal-toggle" id="my-modal-4" type="checkbox" />
<label className="cursor-pointer modal" htmlFor="my-modal-4">
<label className="absolute top-5 bottom-5 w-full max-w-5xl max-h-full modal-box" htmlFor="my-modal-4">
<label className="absolute top-5 bottom-5 w-full max-w-5xl max-h-full modal-box" htmlFor="temp">
<FormGroup subtitle="" title="Metadata">
<TextInput {...nameState} onChange={(e) => nameState.onChange(e.target.value)} />
<TextInput {...descriptionState} onChange={(e) => descriptionState.onChange(e.target.value)} />