Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-124201

Experimental UI button cannot be clicked

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.17.11 Hotfix, 1.16.230.52 Beta, 1.16.220, 1.17.0, 1.17.30
    • None
    • Plausible
    • Windows

      Summary:
      HTML5 button click event is not received by Experimental UI JavaScript event listener

      Steps to Reproduce:

      1. Install the Issue Demo mod
      2. Create a new world with "Additional Modding Capabilities" turned on
      3. Apply the Issue Demo behavior pack
      4. On entering the world, a 4-button UI will be displayed:
        1. Hover To Unload
        2. Hover To Send Message
        3. Click To Send Message
        4. Script Interface Status
      5. Hover over the button "Hover To Send Message"
      6. Check that the button text turns green
      7. Check the chat console for a message "Issue Demo hover" to see that the Experimental UI, client scripts, and "mouseover" event listener are working
      8. Click the button "Click To Send Message"
      9. Check that the button text turns green
      10. Check the chat console for a message "Issue Demo click" to see that the "click" event listener for buttons is working

      Observed Results:
      The hover button text turns green, and a message is received. The click button text does not turn green and no message is received in the chat console
      Expected Results:
      Both button texts turn green and two messages are received in the chat console
      Notes:
      This bug was first noticed in the Experimental UI demo Turn-Based RPG https://aka.ms/minecraftscripting_turnbased
      Verified still an issue on the latest stable version (1.17.11)
      The attached addon was created specifically to demonstrate this issue and is as minimal as possible to that end. It contains the Experiemental UI, loosely based on the Turn-Based RPG starting UI, with 4 buttons. From top to bottom, they are:

      1. A button to unload the Experimental UI, using the hover event.
      2. A button to demonstrate that the JS click event in the Experimental UI is not working.
      3. A button to demonstrate that other JS event listeners in the Experimental UI are working. Specifically, it uses the "mouseover" event. It also communicates with a client script to demonstrate that only the Experimental UI JS event is failing.
      4. A button to verify the Script Interface was established by turning green.

       

            mglo Mike Glorioso
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: