question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TextReplacementRenderer does not replace in click event values

See original GitHub issue

Component#replaceText/TextReplacementRenderer currently only replaces replacements in hover event values but not in click event values.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zml2008commented, Jan 16, 2022

Works as intended, click event values are not Components, so the existing replacement logic cannot work.

0reactions
Phoenix616commented, Jan 16, 2022

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found