Skip to content

Commit

Permalink
Merge pull request #351 from ramble-lo/master
Browse files Browse the repository at this point in the history
handle checkboxList selected status
  • Loading branch information
stulip authored Nov 20, 2024
2 parents 32ecf5a + 539d39b commit 076eda2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RichToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default class RichToolbar extends Component {
if (this.editor && items !== selectedItems) {
this.setState({
items,
data: this.state.actions.map(action => ({action, selected: items.includes(action)})),
data: this.state.actions.map(action => ({action, selected: items.includes(action) || items.some(item => item && item.type === action)})),
});
}
}
Expand Down

0 comments on commit 076eda2

Please sign in to comment.