-
Notifications
You must be signed in to change notification settings - Fork 670
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
Feature/fix issue 1364 #1365
Conversation
germanbisurgi
commented
Jul 3, 2023
Q | A |
---|---|
Is bugfix? | ✔️ |
Is backward-compatible? | ✔️ |
Tests pass? | ✔️ |
Fixed issues | #1364 |
Added CHANGELOG entry? | ✔️ |
…sing dependencies. Registering the editor before setting the initial values allows for better communication between editors when using dependencies
@@ -1109,6 1109,7 @@ export class ObjectEditor extends AbstractEditor { | |||
|
|||
Object.keys(this.editors).forEach(i => { | |||
if (this.editors[i].isActive()) { | |||
this.editors[i].refreshValue() |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure: #1396