Falko Schindler hace 2 años
padre
commit
856745cff3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      nicegui/elements/joystick.js

+ 1 - 1
nicegui/elements/joystick.js

@@ -1,6 +1,6 @@
 Vue.component("joystick", {
 Vue.component("joystick", {
   template: `
   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() {
   mounted() {
     const joystick = nipplejs.create({
     const joystick = nipplejs.create({