Skip to content
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

Merged
merged 3 commits into from
Jul 2, 2024
Merged

Fix clear button email #285

merged 3 commits into from
Jul 2, 2024

Conversation

JochemVH1
Copy link
Collaborator

@JochemVH1 JochemVH1 commented Jul 2, 2024

Added clear button to reset the text for the TextEditor following issue 284

JochemVH1 added 3 commits July 2, 2024 10:36
…nts. Added logic for clearing the TextEditor with empty string content. Added logic to click handler of new button in TextEditorReplacements
@JochemVH1 JochemVH1 requested a review from Laoujin July 2, 2024 10:49
@JochemVH1 JochemVH1 linked an issue Jul 2, 2024 that may be closed by this pull request
@@ -17,7 +17,7 @@ import './EmailForm.scss';
type EmailFormProps = BaseInputProps<EmailModel> & {
/** Attachments that are available for emailing */
attachmentsAvailable: string[],
textEditorReplacements?: ITextEditorCustomReplacement[];
textEditorReplacements?: ITextEditorCustomReplacement[]
Copy link
Member

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>
Copy link
Member

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>
Copy link
Member

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}

@Laoujin Laoujin merged commit 007d530 into master Jul 2, 2024
1 check passed
@Laoujin Laoujin deleted the fix-clear-button-email branch July 31, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inheritance of email body
2 participants