Skip to content

Commit

Permalink
fix: copy all properties of the group
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasnys committed Jul 12, 2024
1 parent 2636ef2 commit 3bf3c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ember-power-select/src/utils/group-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export interface Group {
groupName: string;
}
function copyGroup(group: Group, suboptions: any[]): Group {
const groupCopy: Group = { groupName: group.groupName, options: suboptions };
const groupCopy: Group = { ...group, options: suboptions };
if (Object.prototype.hasOwnProperty.call(group, 'disabled')) {
groupCopy.disabled = group.disabled;
}
Expand Down

0 comments on commit 3bf3c7a

Please sign in to comment.