TextReplacementRenderer does not replace in click event values
See original GitHub issueComponent#replaceText
/TextReplacementRenderer
currently only replaces replacements in hover event values but not in click event values.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
jquery - Click event is not working after replacing the elements
When you add a new element (it's a new element, even if it does look the same as the old one) it doesn't...
Read more >Element: click event - Web APIs | MDN
An element receives a click event when a pointing device button (such as a mouse's primary mouse button) is both pressed and released...
Read more >adventure/Component.java at main/4 · KyoriPowered ... - GitHub
import net.kyori.adventure.text.event.ClickEvent; ... @deprecated since 4.7.0, not for removal, with no replacement. The {@code value} field is no longer ...
Read more >When a Click is Not Just a Click | CSS-Tricks
The click event is quite simple and easy to use; you listen for the event and run code when the event is fired....
Read more >HTML Button onclick – JavaScript Click Event Tutorial
The onclick event executes a certain functionality when a button is clicked. This could be when a user submits a form, when you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Works as intended, click event values are not
Components
, so the existing replacement logic cannot work.Of course I have a tool for that, just expected Component#replaceText to replace every occurrence of a placeholder and thought this was an oversight. (Also I ultimately want to move away from having to use my own custom replacement stuff so Improving this is definitely in my interest. Gonna move the conversation regarding how to best implement it over to the other issue though)