Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-167107

Border of "Leave Bed" button and component behind it can be focused at the same time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15 Pre-release 4, 1.15 Pre-release 6, 20w28a, 20w51a, 21w03a, 1.16.5, 21w06a, 21w08b, 21w13a, 21w14a, 1.17, 1.17.1, 1.18.1, 1.18.2, 1.19, 1.19.2
    • None
    • Confirmed
    • UI
    • Low
    • Platform

      The bug

      It is possible that the "Leave Bed" button shown while sleeping and the component behind it have mouse focus at the same time. Might affect all buttons in general.

      Reproduction steps

      1. Place a bed
      2. Set the time to night
        /time set night
        
      3. Run the following command
        /tellraw @s {"text":"Text with hover event aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","hoverEvent":{"action":"show_text","value":"Hover"},"clickEvent":{"action":"run_command","value":"/say Clicked"}}
        
      4. Enter the bed
      5. Move the mouse at the top border of the button, but also where the text from step 3 would be
        The button has focus (white outline) and at the same time the hover text is shown; incorrect rendering is covered by MC-165546
      6. Perform a left click while the button and the text component have focus
        If the mouse is close enough to the border, the text component handles the click (unexpected) instead of the button

        1. 2021-04-11_17.25.16.png
          264 kB
          [Mod] Avoma
        2. MC-167107.mp4
          2.60 MB
          [Mod] Avoma

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: