Use initial value of dirty attribute in template

I’m implementing a page that contains a cart. In that page I have a cart component in which items that are included in an order are being listed.

I seem to have an issue though which I want to know whether I can easily overcome. When I try to modify an item that exists in the order tree, the changes are being reflected immediately.

For example let’s say that quantity is a model attribute that is being displayed by my cart component.

When I edit the quantity attribute and the model gets in dirty state, my cart component shows the new quantity and not the old one. What I want to achieve is keep showing the old attribute value until the model gets saved.

Anyone knows a way to achieve something like that?