浏览代码

Use src attribute rather than data for canvas source

Signed-off-by: Nico Burns <nico@nicoburns.com>
Nico Burns 1 周之前
父节点
当前提交
4405ae0c9c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/wgpu-texture/src/main.rs

+ 1 - 1
examples/wgpu-texture/src/main.rs

@@ -102,7 +102,7 @@ fn SpinningCube(color: Memo<Color>) -> Element {
         div { id:"canvas-container",
             canvas {
                 id: "demo-canvas",
-                "data": paint_source_id
+                "src": paint_source_id
             }
         }
     )