Transaction not beeing applied

Запись экрана 2023-07-20 в 15.50.28

here you can see that it does not checks the spelling at first time but when I trigger update data by new input it updates the class attribute and then get highlighted with green

second input the same, at first I filled the wrong answer, but right after the Check button it did not highlight red color, only after triggering state