mirror of
https://github.com/documenso/documenso.git
synced 2025-11-18 02:32:00 +10:00
fix: disable input when there is a signature available
This commit is contained in:
@ -176,8 +176,7 @@ export const SigningForm = ({ document, recipient, fields }: SigningFormProps) =
|
|||||||
id="signatureText"
|
id="signatureText"
|
||||||
className="text-foreground placeholder:text-muted-foreground border-0 border-none bg-transparent p-0 text-sm focus-visible:ring-transparent"
|
className="text-foreground placeholder:text-muted-foreground border-0 border-none bg-transparent p-0 text-sm focus-visible:ring-transparent"
|
||||||
placeholder="Draw or type name here"
|
placeholder="Draw or type name here"
|
||||||
// disabled={isSubmitting || signature !== null}
|
disabled={isSubmitting || signature !== null}
|
||||||
disabled={isSubmitting}
|
|
||||||
{...register('signatureText', {
|
{...register('signatureText', {
|
||||||
onChange: (e) => {
|
onChange: (e) => {
|
||||||
if (e.target.value !== '') {
|
if (e.target.value !== '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user