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: Don't append "copy" to title on duplicate richText elements #3131

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

dsamojlenko
Copy link
Member

Summary | Résumé

Fixes #3130

When duplicating fields, the duplicate function in useTemplateStore appends the word copy to the title of the element.

Problem is, in richText elements, the title is not normally used and by appending text to it causes the word copy to render to the screen on the rendered form. Since the richText field doesn't have a Title field, it is then not fixable by the user.

This addresses the issue by ignoring the title field when duplicating richText elements.

Copy link
Contributor

@dsamojlenko dsamojlenko merged commit 4a039b6 into develop Jan 22, 2024
11 checks passed
@dsamojlenko dsamojlenko deleted the bugfix/uneditable_copy_text_on_duplicate branch January 22, 2024 18:35
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.

"Copy" text strings being generated when using the duplicate button
2 participants