Skip to content

Commit

Permalink
work for the #3797
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Jan 29, 2023
1 parent 1043086 commit 47ad969
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/survey-creator-core/src/property-grid/matrices.ts
Expand Up @@ -89,6 +89,7 @@ export abstract class PropertyGridEditorMatrix extends PropertyGridEditor {
showDetailAction.iconName = this.getShowDetailActionIconName(row);
showDetailAction.showTitle = false;
showDetailAction.location = "end";
showDetailAction.ariaExpanded = row.isDetailPanelShowing;
showDetailAction.action = () => {
row.showHideDetailPanelClick();
showDetailAction.iconName = row.isDetailPanelShowing ? "icon-editing-finish" : "icon-edit";
Expand All @@ -97,6 +98,7 @@ export abstract class PropertyGridEditorMatrix extends PropertyGridEditor {
showDetailAction.visible = this.hasPropertiesInDetail;
row.onDetailPanelShowingChanged = () => {
showDetailAction.iconName = this.getShowDetailActionIconName(row);
showDetailAction.ariaExpanded = row.isDetailPanelShowing;
};
}
this.updateMatixActionsClasses(actions);
Expand Down Expand Up @@ -273,9 +275,9 @@ export abstract class PropertyGridEditorMatrix extends PropertyGridEditor {
if (!!q.options) {
this.setupUsingOptions(obj, matrix, q.options, prop);
}
if(!!prop.uniquePropertyName) {
if (!!prop.uniquePropertyName) {
const column = matrix.getColumnByName(prop.uniquePropertyName);
if(!!column) {
if (!!column) {
column.isUnique = true;
}
}
Expand Down

0 comments on commit 47ad969

Please sign in to comment.