Skip to content

Commit

Permalink
Merge pull request #3 from geoffoliver/patch-1
Browse files Browse the repository at this point in the history
Fix issue with search
  • Loading branch information
PollRobots authored Nov 14, 2024
2 parents ebafbe2 + 25f4950 commit 2eb3484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ export default class EditorAdapter {
},
}));
const previous = this.decorations.get(className);
if (previous) {
if (previous && previous.append) {
previous.append(decorations);
} else {
const collection = this.editor.createDecorationsCollection(decorations);
Expand Down

0 comments on commit 2eb3484

Please sign in to comment.