Skip to content

Commit

Permalink
fixed customizer plugin selector settings rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed Jun 5, 2024
1 parent a4a2f63 commit f6c1e34
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion gutenberg/plugins/customizer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,19 @@ class Customizer extends Component {
}
});

// We can't use groups because of react-virtualized and dynamic height of groups.
// Instead add options in a plain list with group headings.
Object.keys(groupedList).forEach((k) => {
result.push(groupedList[k]);
// Group label.
result.push({
label: `${groupedList[k].label}:`,
value: `react-select-group-${k}`,
isDisabled: true,
});

groupedList[k].options.forEach((option) => {
result.push(option);
});
});
}

Expand Down

0 comments on commit f6c1e34

Please sign in to comment.