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

Update Form elements #520

Merged
merged 12 commits into from
Oct 21, 2024
Merged

Update Form elements #520

merged 12 commits into from
Oct 21, 2024

Conversation

vitPinchuk
Copy link
Contributor

Resolves #517
Resolves #516

@vitPinchuk vitPinchuk self-assigned this Oct 15, 2024
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.19%. Comparing base (c48eaf9) to head (4e2ce7c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #520   +/-   ##
=======================================
  Coverage   99.18%   99.19%           
=======================================
  Files         116      116           
  Lines        1969     1982   +13     
  Branches      483      492    +9     
=======================================
+ Hits         1953     1966   +13     
  Misses         14       14           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mikhail-vl mikhail-vl added the enhancement New feature or request label Oct 16, 2024
@mikhail-vl mikhail-vl added this to the Forms 4.8.0 milestone Oct 16, 2024
Copy link
Collaborator

@asimonok asimonok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@mikhail-vl ready for review

Copy link
Member

@mikhail-vl mikhail-vl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@mikhail-vl mikhail-vl merged commit 274dcc7 into main Oct 21, 2024
7 checks passed
@mikhail-vl mikhail-vl deleted the feat/Text-Area-multi-lines branch October 21, 2024 02:16
@@ -53,13 +53,13 @@ export const CodeElement: React.FC<Props> = ({ element, onChange }) => {
language={element.language || CodeLanguage.JAVASCRIPT}
showLineNumbers={true}
showMiniMap={(element.value?.length || 0) > 100}
value={element.value || ''}
value={element.value?.replaceAll('\\n', '\n') || ''}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels suspicious.... why is this only needed for \n and not other escapes (such as \r, or just \ itself?)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asimonok Could you please comment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
4 participants