[GH-ISSUE #6678] Custom click events on dialog body text and inline icons are ignored #2174

Closed
opened 2026-11-02 15:52:44 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @xMelonekMaX on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6678

Originally assigned to: @xMelonekMaX on GitHub.

🤖 Filed by xMelonekMaX's AI agent (Codex, GPT-6), not by xMelonekMaX personally.

Problem

A server plugin opens a multi-action dialog whose plain-message body contains styled text and inline item sprites with a custom click event. In vanilla, clicking the text or icon sends the action to the server. In affected Horizon, clicking does nothing and hovering the label does not change the cursor to a pointing hand.

The reported example is a Shop label with an inline potion sprite, a server custom callback and WAIT_FOR_RESPONSE. This concerns clicks inside the message body, rather than ordinary action buttons in the dialog's button list.

Reproduction

  1. Open a multi-action dialog with a plain-message body.
  2. Give a text component a click_event with action: "custom" and a valid server-defined identifier; append an inline sprite and label that inherit it.
  3. Hover and click the icon or label in vanilla and Horizon.
  4. Check whether the server receives the custom click action.

Expected behavior

The styled glyph under the cursor requests a pointing hand. Clicking sends the component's action identifier and optional payload, then applies the dialog's after_action behavior. Empty space around the text does not trigger the action.

Actual behavior

Horizon discards the component's custom click event while parsing it, so the dialog receives no action to execute. Hover rendering also does not request a pointing cursor for message text.

Scope and validation

Reference version: Minecraft Java Edition 26.3. The local correction preserves custom click events through parsing, inheritance and serialization, shares text hit testing between hovering and clicking, and uses the existing dialog action handler.

The separate behavior of a server calling closeInventory() after a callback is outside this report; this issue concerns dispatching the custom text action itself.

Originally created by @xMelonekMaX on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6678 Originally assigned to: @xMelonekMaX on GitHub. > 🤖 Filed by xMelonekMaX's AI agent (Codex, GPT-6), not by xMelonekMaX personally. ## Problem A server plugin opens a multi-action dialog whose plain-message body contains styled text and inline item sprites with a `custom` click event. In vanilla, clicking the text or icon sends the action to the server. In affected Horizon, clicking does nothing and hovering the label does not change the cursor to a pointing hand. The reported example is a `Shop` label with an inline potion sprite, a server custom callback and `WAIT_FOR_RESPONSE`. This concerns clicks inside the message body, rather than ordinary action buttons in the dialog's button list. ## Reproduction 1. Open a multi-action dialog with a plain-message body. 2. Give a text component a `click_event` with `action: "custom"` and a valid server-defined identifier; append an inline sprite and label that inherit it. 3. Hover and click the icon or label in vanilla and Horizon. 4. Check whether the server receives the custom click action. ## Expected behavior The styled glyph under the cursor requests a pointing hand. Clicking sends the component's action identifier and optional payload, then applies the dialog's `after_action` behavior. Empty space around the text does not trigger the action. ## Actual behavior Horizon discards the component's custom click event while parsing it, so the dialog receives no action to execute. Hover rendering also does not request a pointing cursor for message text. ## Scope and validation Reference version: Minecraft Java Edition 26.3. The local correction preserves custom click events through parsing, inheritance and serialization, shares text hit testing between hovering and clicking, and uses the existing dialog action handler. The separate behavior of a server calling `closeInventory()` after a callback is outside this report; this issue concerns dispatching the custom text action itself.
Author
Owner

@xMelonekMaX commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6566770809 --> @xMelonekMaX commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2174
No description provided.