a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix react problem with custom attr name

+2 -2
+2 -2
components/Blocks.tsx
··· 46 46 let contents = range.cloneContents(); 47 47 let entityIDs: string[] = []; 48 48 for (let child of contents.children) { 49 - let entityID = child.getAttribute("data-entityID"); 49 + let entityID = child.getAttribute("data-entityid"); 50 50 if (entityID) entityIDs.push(entityID); 51 51 } 52 52 useUIState.getState().setSelectedBlocks(entityIDs); ··· 274 274 ]); 275 275 return ( 276 276 <div 277 - data-entityID={props.entityID} 277 + data-entityid={props.entityID} 278 278 onMouseDown={(e) => { 279 279 if (e.shiftKey) { 280 280 e.preventDefault();