Hi!
Since upgrading from Jmix 2.2 to 2.4.0, checkboxes in my views dont fire ComponentValueChangeEvents anymore.
xml:
<checkbox id="anonymousCheckbox"
label="Anonymous"
dataContainer="appointmentDc"
property="member.anonymous"/>
View controller:
@Subscribe("anonymousCheckbox")
public void onAnonymousCheckboxComponentValueChange(final AbstractField.ComponentValueChangeEvent<JmixCheckbox, ?> event)
{
log.debug("valuechange anon");
}
I also tried to bind the event in my onInit handler:
anonymousCheckbox.addValueChangeListener(e -> log.debug("vc anon"));
But that did not work either.
Also, it seems that the property the component is bound to in the xml does not change (‘anonymous’ property of entity ‘Member’).
ValueChangeEvents of other components work as expected, it just seems to affect the checkbox component.
Any ideas?
Jmix version: 2.4.0
Jmix Studio plugin version: 2.4.2-243
IntelliJ version: IntelliJ IDEA 2024.3.1.1 (Ultimate Edition)