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(ui): fix object-editor text render issue #4921

Merged
merged 1 commit into from Jan 21, 2021

Conversation

tczhao
Copy link
Member

@tczhao tczhao commented Jan 21, 2021

Fixed issue introduced by PR #4911

Sorry, the previous implementation is very buggy,

Issues:
object-editor

  • unable to create newline, due to rendering text with stringify removes all empty lines
  • duplicate render, text was first rendered by monaco, then the rendered text got rendered again by useEffect hook

Changed:
base on the pre #4911 code, add an additional isModified hook to trigger initial onChange

Signed-off-by: Tianchu Zhao evantczhao@gmail.com

Checklist:

issue: duplicate render, new line got automatically remove in display text
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
Copy link
Contributor

@alexec alexec left a comment

Choose a reason for hiding this comment

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

LGTM

@alexec alexec merged commit 2d73d58 into argoproj:master Jan 21, 2021
This was referenced Jan 25, 2021
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.

None yet

2 participants