{"action":"created","issue":{"url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/154","labels_url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/154/comments","events_url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/154/events","html_url":"https://github.com/BobKnothe/autoNumeric/issues/154","id":95059174,"number":154,"title":"Latest Version Ignores Setting Value From 'On Change' Event","user":{"login":"henweigh","id":5341142,"avatar_url":"https://avatars.githubusercontent.com/u/5341142?v=3","gravatar_id":"","url":"https://api.github.com/users/henweigh","html_url":"https://github.com/henweigh","followers_url":"https://api.github.com/users/henweigh/followers","following_url":"https://api.github.com/users/henweigh/following{/other_user}","gists_url":"https://api.github.com/users/henweigh/gists{/gist_id}","starred_url":"https://api.github.com/users/henweigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henweigh/subscriptions","organizations_url":"https://api.github.com/users/henweigh/orgs","repos_url":"https://api.github.com/users/henweigh/repos","events_url":"https://api.github.com/users/henweigh/events{/privacy}","received_events_url":"https://api.github.com/users/henweigh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-14T22:43:25Z","updated_at":"2015-09-02T21:20:02Z","closed_at":"2015-07-17T17:26:44Z","body":"Hello,\r\nFirst of all, I'm a huge fan of autoNumeric and I think you've done an amazing job with it!\r\n\r\nI believe I discovered a bug in 1.9.38 which prevents updating the value of a form field when looking for a 'change' event on the target field.  This issue didn't exist in the last version I was using (1.9.22)\r\n\r\nHere's a fiddle to re-create the issue:\r\nhttp://jsfiddle.net/zoaxxxef/8/\r\n\r\nThe above fiddle looks for a 'change' on an input field and then tries to force the value of the field to '100.00'.  However when you change the field and click out of it nothing happens.\r\n\r\nTo further test this issue I created a second field which when changed will set the value of the first field to '100,00'.  This method works.\r\n\r\nPlease let me know if you need any more code samples or information.  Keep up the great work!"},"comment":{"url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/comments/137247800","html_url":"https://github.com/BobKnothe/autoNumeric/issues/154#issuecomment-137247800","issue_url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/154","id":137247800,"user":{"login":"BobKnothe","id":467351,"avatar_url":"https://avatars.githubusercontent.com/u/467351?v=3","gravatar_id":"","url":"https://api.github.com/users/BobKnothe","html_url":"https://github.com/BobKnothe","followers_url":"https://api.github.com/users/BobKnothe/followers","following_url":"https://api.github.com/users/BobKnothe/following{/other_user}","gists_url":"https://api.github.com/users/BobKnothe/gists{/gist_id}","starred_url":"https://api.github.com/users/BobKnothe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BobKnothe/subscriptions","organizations_url":"https://api.github.com/users/BobKnothe/orgs","repos_url":"https://api.github.com/users/BobKnothe/repos","events_url":"https://api.github.com/users/BobKnothe/events{/privacy}","received_events_url":"https://api.github.com/users/BobKnothe/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T21:20:02Z","updated_at":"2015-09-02T21:20:02Z","body":"Please do not use jQuery's val() does not format the values.\n\nI created autoNumeric \"set\" method to accomplish this and is all \ndocumented here http://www.decorplanit.com/plugin/.\n\nChange:     $('input[name=\"price1\"]').val('100');\nto this:        $('input[name=\"price1\"]').autoNumeric('set', '100');\n\nThe blur method will not be required.\n\nIf this works please close the issue.\n\nBob\n\n\n\nOn 9/2/2015 2:58 PM, henweigh wrote:\n>\n> I just attempted my jsFiddle with the updated veresion 1.9.39 but the \n> number formatting still doesn't seem to be taking effect when an input \n> field is set via the val() method:\n>\n> http://jsfiddle.net/kzdjc706/2/\n>\n> I can trick the script to format the number by appending blur() like \n> the old version, however with the recent changes in 1.9.39 causes the \n> change() trigger to fire infinitely until the javascript call stack is \n> exceeded. See this fiddle:\n>\n> http://jsfiddle.net/kzdjc706/3/\n>\n> —\n> Reply to this email directly or view it on GitHub \n> <https://github.com/BobKnothe/autoNumeric/issues/154#issuecomment-137227029>.\n>\n\n"}}