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

Feature/fix issue 1364 #1365

Merged

Conversation

germanbisurgi
Copy link
Collaborator

Q A
Is bugfix? ✔️
Is backward-compatible? ✔️
Tests pass? ✔️
Fixed issues #1364
Added CHANGELOG entry? ✔️

@germanbisurgi germanbisurgi requested a review from schmunk42 July 3, 2023 10:54
gbisurgi added 3 commits July 3, 2023 13:32
…sing dependencies. Registering the editor before setting the initial values allows for better communication between editors when using dependencies
@germanbisurgi germanbisurgi merged commit 4d48687 into json-editor:master Jul 3, 2023
@germanbisurgi germanbisurgi deleted the feature/fix-issue-1364 branch July 4, 2023 08:51
@@ -1109,6 1109,7 @@ export class ObjectEditor extends AbstractEditor {

Object.keys(this.editors).forEach(i => {
if (this.editors[i].isActive()) {
this.editors[i].refreshValue()
Copy link

@YuriHeupa YuriHeupa Sep 27, 2023

Choose a reason for hiding this comment

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

For some reason after this change was introduced, the disable_array_delete_all_rows/disable_array_delete_last_row options stopped working as expected. When the editor loads a schema with empty initial data for an array, the "delete all row" and "delete last row" buttons are always visible. Reverting this line change seems to fix the issue. Additionally, adding and then removing a row also causes the buttons to disappear.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you create an issue with an example.

Choose a reason for hiding this comment

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

Sure: #1396

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.

4 participants