Falko Schindler 2 年之前
父节点
当前提交
856745cff3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nicegui/elements/joystick.js

+ 1 - 1
nicegui/elements/joystick.js

@@ -1,6 +1,6 @@
 Vue.component("joystick", {
   template: `
-    <div v-bind:id="jp_props.id" style="background-color:AliceBlue;position:relative;width:10em;height:10em" :style="jp_props.style"></div>
+  <div data-nicegui='joystick' v-bind:id="jp_props.id" style="background-color:AliceBlue;position:relative;width:10em;height:10em" :style="jp_props.style"></div>
     `,
   mounted() {
     const joystick = nipplejs.create({