Updated two-way data-binding logic such that they are triggered by input events as well.