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

Do not commit edited value if it contains no changes #928

Merged
merged 10 commits into from
Jul 31, 2024

Conversation

jasdom
Copy link
Contributor

@jasdom jasdom commented Jul 23, 2024

Changes

Closes #915. Updated EditorContainer to not commit the value when Escape is pressed or when the value is identical to the original (for primitive properties).

Testing

Added and updated unit tests, manually tested in test app.

@jasdom jasdom marked this pull request as ready for review July 23, 2024 13:50
@jasdom jasdom requested a review from a team as a code owner July 23, 2024 13:50
@jasdom jasdom requested a review from a team July 23, 2024 13:50
Copy link
Collaborator

@GerardasB GerardasB left a comment

Choose a reason for hiding this comment

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

How did you test the ToolSettingsPopup? Would you mind adding it to storybook?

@jasdom
Copy link
Contributor Author

jasdom commented Jul 30, 2024

How did you test the ToolSettingsPopup? Would you mind adding it to storybook?

I tested it by using the setup of the unit test I modified in a test app. Moved the code into storybook.

@jasdom jasdom merged commit 944d6c7 into master Jul 31, 2024
20 checks passed
@jasdom jasdom deleted the improve-property-editors branch July 31, 2024 11:16
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.

The commit behavior of the PropertyPane editor needs some modifications
2 participants