Sfoglia il codice sorgente

Merge pull request #7977 from weseek/fix/do-not-work-image-properties

fix: Do not work image tag properties
Yuki Takei 2 anni fa
parent
commit
797794cb18

+ 1 - 1
apps/app/src/components/ReactMarkdownComponents/LightBox.tsx

@@ -6,7 +6,7 @@ export const LightBox = (props) => {
   const [toggler, setToggler] = useState(false);
   return (
     <>
-      <img src={props.src} alt={props.alt} onClick={() => setToggler(!toggler)}/>
+      <img {...props.node.properties} onClick={() => setToggler(!toggler)}/>
       <FsLightbox
         toggler={toggler}
         sources={[props.src]}