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

CodeEditor loading property considered by the Editor #11034

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ginxo
Copy link

@Ginxo Ginxo commented Sep 20, 2024

What: Closes #11033

Additional issues:

@Ginxo
Copy link
Author

Ginxo commented Sep 20, 2024

I would like to see tests for this particular use case not being covered, I will provide as soon as we have an approval about the issue and also the proposal (this PR)

@patternfly-build
Copy link
Contributor

patternfly-build commented Sep 20, 2024

@tlabaj tlabaj requested a review from kmcfaul September 26, 2024 20:27
@@ -652,6 +653,7 @@ class CodeEditor extends React.Component<CodeEditorProps, CodeEditorState> {
onChange={this.onChange}
onMount={this.editorDidMount}
theme={isDarkTheme ? 'vs-dark' : 'vs-light'}
loading={loading}
{...editorProps}
Copy link
Contributor

Choose a reason for hiding this comment

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

editorProps should already allow loading to be passed. If we want loading to be a distinct property, we will need to add it to the props table.

Copy link
Contributor

@kmcfaul kmcfaul Oct 10, 2024

Choose a reason for hiding this comment

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

I missed that this already was in the props table and is unused.

Copy link
Contributor

@kmcfaul kmcfaul left a comment

Choose a reason for hiding this comment

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

Ah I do see we have this on our props table already, it wasn't being passed.

Using editorProps would also work, but I'm in favor of adding this method too.

@Ginxo
Copy link
Author

Ginxo commented Oct 12, 2024

one more additional approver required, please any kind soul aroung? 🙏 😉

@tlabaj
Copy link
Contributor

tlabaj commented Oct 23, 2024

@Ginxo if you need this in v5, can you please change the base branch to the v5 branch

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.

Bug - CodeEditor - loading component not passed to Editor
4 participants