Repository navigation
fix(ui): reset local signature state on open/close in SignaturePadDialog (#3203) - #3265
Rodrigoue9 wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hey there, it looks like you haven't accepted our contributor license agreement yet. In order for us to accept your pull request we ask that you please fill out the CLA: https://documen.so/cla |
| </motion.button> | ||
|
|
||
| <Dialog open={showSignatureModal} onOpenChange={disabled ? undefined : setShowSignatureModal}> | ||
| <Dialog |
There was a problem hiding this comment.
Fix seems correct. Please extract the reset into a single onOpenChange(open) handler. Something like:
const onOpenChange = (open: boolean) => {
if (disabled) {
return;
}
setSignature(value ?? '');
setShowSignatureModal(open);
};
|
Thanks for working on this! Since the requested changes haven't been addressed, I've combined this and a similar PR into #3408, so I'm closing this one. |
Title
fix(ui): reset local signature state when opening and closing SignaturePadDialog (#3203)
Description
signaturestate tovalue ?? ''wheneverSignaturePadDialogis opened or closed.Closes #3203