{"action":"opened","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/265","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/265/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/265/events","html_url":"https://github.com/erikras/redux-form/issues/265","id":116501991,"number":265,"title":"normalize doesn't work","user":{"login":"elianl","id":3530337,"avatar_url":"https://avatars.githubusercontent.com/u/3530337?v=3","gravatar_id":"","url":"https://api.github.com/users/elianl","html_url":"https://github.com/elianl","followers_url":"https://api.github.com/users/elianl/followers","following_url":"https://api.github.com/users/elianl/following{/other_user}","gists_url":"https://api.github.com/users/elianl/gists{/gist_id}","starred_url":"https://api.github.com/users/elianl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elianl/subscriptions","organizations_url":"https://api.github.com/users/elianl/orgs","repos_url":"https://api.github.com/users/elianl/repos","events_url":"https://api.github.com/users/elianl/events{/privacy}","received_events_url":"https://api.github.com/users/elianl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-12T08:30:08Z","updated_at":"2015-11-12T08:30:08Z","closed_at":null,"body":"I have seen this example http://erikras.github.io/redux-form/#/examples/normalizing?_k=zs4r3m, and have written following code:\r\n\r\n```javascript\r\n//reducer\r\nimport {reducer as form} from 'redux-form';\r\n\r\nexport default form.normalize({\r\n    loginWithPhone: {\r\n      phone_number: (value, previousValue, allValues) => {\r\n        if (!value) return value;\r\n        console.log(`hey! I'm normalizer`)\r\n        return value.replace(/[^\\d]/g, '');\r\n      }\r\n    }\r\n  }\r\n)\r\n\r\n....\r\n\r\n//component\r\n@reduxForm({\r\n  form: 'loginWithPhone',\r\n  fields: ['phone_number'],\r\n})\r\nclass PhoneForm extends React.Component{\r\n\r\n  render(){\r\n     const { fields: {phone_number},  handleSubmit} = this.props;\r\n     return (\r\n       ...\r\n       <input type=\"text\" {...phone_number} />\r\n       ...\r\n     )\r\n  }\r\n\r\n}\r\n\r\n```\r\n\r\nWhen I enter something in this input I see \"hey! I'm normalizer\" in console, but value of phone_number isn't normalized"}}