-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix clear button email #285
Conversation
…nts. Added logic for clearing the TextEditor with empty string content. Added logic to click handler of new button in TextEditorReplacements
…it to every TextEditor used
@@ -17,7 +17,7 @@ import './EmailForm.scss'; | |||
type EmailFormProps = BaseInputProps<EmailModel> & { | |||
/** Attachments that are available for emailing */ | |||
attachmentsAvailable: string[], | |||
textEditorReplacements?: ITextEditorCustomReplacement[]; | |||
textEditorReplacements?: ITextEditorCustomReplacement[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
className="rdw-option-wrapper" | ||
aria-selected={false} | ||
title={t("config.invoiceReplacements.clearButton")} | ||
onClick={() => clearText()} > {t("config.invoiceReplacements.clearButton")}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probeer dezelfde styling aan te houden van de rest van het project:
<div
className="rdw-option-wrapper"
aria-selected={false}
title={t("config.invoiceReplacements.clearButton")}
onClick={() => clearText()}
>
{t("config.invoiceReplacements.clearButton")}
</div>
className="rdw-option-wrapper" | ||
aria-selected={false} | ||
title={t("config.invoiceReplacements.clearButton")} | ||
onClick={() => clearText()} > {t("config.invoiceReplacements.clearButton")}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je zou dit kunnen doen met: onClick={clearText}
Added clear button to reset the text for the TextEditor following issue 284