Skip to content

Commit 4cee934

Browse files
authored
fix: add delay for data-active in collab cursors (#2383)
1 parent b8e1f81 commit 4cee934

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/core/src/extensions/Collaboration/YCursorPlugin.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ export const YCursorExtension = createExtension(
9797
const cursor = recentlyUpdatedCursors.get(clientID);
9898

9999
if (cursor) {
100-
cursor.element.setAttribute("data-active", "");
100+
setTimeout(() => {
101+
cursor.element.setAttribute("data-active", "");
102+
}, 10);
101103

102104
if (cursor.hideTimeout) {
103105
clearTimeout(cursor.hideTimeout);

0 commit comments

Comments
 (0)