{"action":"closed","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/4425","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/4425/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/4425/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/4425/events","html_url":"https://github.com/vuejs/vue/issues/4425","id":194536324,"number":4425,"title":"How can i get the old value of of input type number on @change event","user":{"login":"DevEclipse","id":19868205,"avatar_url":"https://avatars.githubusercontent.com/u/19868205?v=3","gravatar_id":"","url":"https://api.github.com/users/DevEclipse","html_url":"https://github.com/DevEclipse","followers_url":"https://api.github.com/users/DevEclipse/followers","following_url":"https://api.github.com/users/DevEclipse/following{/other_user}","gists_url":"https://api.github.com/users/DevEclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/DevEclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevEclipse/subscriptions","organizations_url":"https://api.github.com/users/DevEclipse/orgs","repos_url":"https://api.github.com/users/DevEclipse/repos","events_url":"https://api.github.com/users/DevEclipse/events{/privacy}","received_events_url":"https://api.github.com/users/DevEclipse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-09T08:09:35Z","updated_at":"2016-12-09T08:57:53Z","closed_at":"2016-12-09T08:57:53Z","body":"I want to deduct the quantity of the item to another quantity \r\n\r\nFor Example if\r\n\r\nItem1.quantity = 100\r\n\r\nItem2.quantity = 1000\r\n\r\nthis quantity will change on the @change event listener\r\n\r\nif i deduct 2 in item1\r\n\r\nitem1.quantity = 98\r\n\r\nitem2.quantity = 1002\r\n\r\nhow can i achieve this\r\n\r\nit seems that i dont get the old value \r\n```\r\n                        :ref=\"item.stock\"\r\n                        :name=\"item.stock\"\r\n                        v-model.lazy=\"item.quantity\" type=\"number\" @change=\"deductQuantity(item,$event)\">\r\n```"}}
{"actor":{"display_login":"posva"}}