I want to clear my TextBox after it's Value changes. The way I implemented this is by binding the value of the text box to a variable and then setting the variable to an empty string in onChange. Like this:
Doing it with the :after trigger results in the same behaviour. And I want to clear the textbox because I am making something similar to a messenger where you can send a message and after sending it, it disappears from the textbox.
I just implemented a similar bit today, and clearing the variable clears the textbox for me. I cannot reproduce your issue. My Change is a bit different than yours.. I'm not using the args variation since the bind-Value already contains the data.
My use case for clearing the text box, is for repeated data entry... The user inputs a value, hits enter to accept the value and is then able to enter another, and so on.
But it still only clears the textbox after the first change. I debugged it to see if the function gets called on every update (it does). But for some reason it doesn't do anything after the first change.
Another difference I noticed is that mine is not on a routable component, and am using my component in a dialog. In fact I'm using 2 RadzenTextBox components, and they clear when on the Change method calls by resetting the field. Try testing a non-routable component.