Open jonasrotilli opened 2 years ago
Nobody knows?
my workaround:
textField.addValueChangeListener(event -> {
if (!event.isFromClient()) {
event.getSource().getElement().executeJs("this.querySelector(\"jh-textfield-formatter\").cleave.onInput(\"" + StringEscapeUtils.escapeJava(event.getValue()) + "\");");
}
});
I have a text field that uses Numeral. When the user types, everything works perfectly. When I try to programmatically put a value, the formatting is not done. What's the secret for it to correct the formatting after I set a value? Example:
It's not formatted, it's only if the user modifies anything.
I use in Vaadin 23.