You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should I do this transformation entirely in C++? If so, what is the best way for that? I think to use data-event-change or data-event-textinput for that, although, I can't get the updated value from input (probably the handler is fired before the changes).
The text was updated successfully, but these errors were encountered:
With this code here I would be worried about what looks like a binding loop. When the value updates, there will be an event, which updates the value again, new event... The loop might be broken by that I believe it does not emit the change if it happens to have the same value. But in general I think such binding loops should be avoided.
I think ideally we shouldn't emit change events when changing it programmatically, I believe that's how HTML works.
But regardless, there is a sort of double-assignment here. If you want to respond to changes, you should rather use a data-attr-value combined with data-event-change, and remove data-value. You could also make use of ev.value inside the event-change expression.
Is there anyway to use the format expression on text input?
I tried something like this, but didn't work:
Should I do this transformation entirely in C++? If so, what is the best way for that? I think to use
data-event-change
ordata-event-textinput
for that, although, I can't get the updated value from input (probably the handler is fired before the changes).The text was updated successfully, but these errors were encountered: