{"action":"created","issue":{"url":"https://api.github.com/repos/vuetifyjs/vuetify/issues/7425","repository_url":"https://api.github.com/repos/vuetifyjs/vuetify","labels_url":"https://api.github.com/repos/vuetifyjs/vuetify/issues/7425/labels{/name}","comments_url":"https://api.github.com/repos/vuetifyjs/vuetify/issues/7425/comments","events_url":"https://api.github.com/repos/vuetifyjs/vuetify/issues/7425/events","html_url":"https://github.com/vuetifyjs/vuetify/issues/7425","id":453362271,"node_id":"MDU6SXNzdWU0NTMzNjIyNzE=","number":7425,"title":"[Bug Report] Text field rules are failing to work for dynamic input values","user":{"login":"sourybunny","id":38237352,"node_id":"MDQ6VXNlcjM4MjM3MzUy","avatar_url":"https://avatars2.githubusercontent.com/u/38237352?v=4","gravatar_id":"","url":"https://api.github.com/users/sourybunny","html_url":"https://github.com/sourybunny","followers_url":"https://api.github.com/users/sourybunny/followers","following_url":"https://api.github.com/users/sourybunny/following{/other_user}","gists_url":"https://api.github.com/users/sourybunny/gists{/gist_id}","starred_url":"https://api.github.com/users/sourybunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourybunny/subscriptions","organizations_url":"https://api.github.com/users/sourybunny/orgs","repos_url":"https://api.github.com/users/sourybunny/repos","events_url":"https://api.github.com/users/sourybunny/events{/privacy}","received_events_url":"https://api.github.com/users/sourybunny/received_events","type":"User","site_admin":false},"labels":[{"id":1318950451,"node_id":"MDU6TGFiZWwxMzE4OTUwNDUx","url":"https://api.github.com/repos/vuetifyjs/vuetify/labels/triage","name":"triage","color":"eeeeee","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-06-07T06:45:33Z","updated_at":"2019-06-07T07:49:11Z","closed_at":null,"author_association":"NONE","body":"### Versions and Environment\r\n**Vuetify:** 1.5.14\r\n**Vue:** 2.6.10\r\n**Browsers:** Chrome 74.0.3729.169\r\n**OS:** Windows 10\r\n\r\n### Steps to reproduce\r\nI have a crazy magical problem with vuetify form rules validation.It's very hard to explain the issue, you have to try it yourself.\r\n https://codepen.io/souryacodes/full/VOJvLM \r\nI have to implement \"withdraw money from wallet\"\r\nSo, there are a few things here,\r\n1) input amount should be less than balance\r\n2) amount should be less than a maxVal, you can't withdraw all at once.\r\n3) amount should be greater than a certain minVal, can't withdraw too less amount.\r\nYou can see the rules I wrote in the codepen, If you think they could be wrong, please let me know.\r\nThe problem:\r\nI tested with different combinations of all 4 values.\r\nIt works fine with most of the cases, I get correct error messages, but sometimes it doesn't work as expected.It accepts invalid amount or gives wrong error messages\r\nHow to find the problem?\r\n\r\n  (1) Keep trying some combinations till you think something is wrong, and not working as expected. \r\n  (2) Now, copy the step( 1 ) values somewhere and hardcode those values in the data(), save and now reload the codepen page , you will see that what you thought wasn't working on step(1) works magically as expected.\r\n![1-screenshot](https://user-images.githubusercontent.com/38237352/59085895-cb565380-891d-11e9-826e-025e3cc105c8.png)\r\nReproduce exactly like below:\r\n1) Enter Balance: 34\r\n2) minVal: 0.01\r\n3) maxVal: 0.5\r\n4) amount : 5\r\nWhat you get: An error message- 'amount must be less than 0.5' which is wrong.\r\nNow, Edit the code pen like below:\r\nIn data()\r\nset balace: 34,\r\nminAmount: 0.01,\r\nmaxAmount: 0.5,\r\namount: 5,\r\nSave the codepen and reload the page, these values will be pre-populated, Interestingly you will notice that the error you got before now works fine. \r\n\r\n### Expected Behavior\r\nText field rules should work properly for dynamic input values \r\n\r\n### Actual Behavior\r\nThey work correctly only for hard-coded input numbers \r\n\r\n### Reproduction Link\r\n<a href=\"https://codepen.io/souryacodes/full/VOJvLM\" target=\"_blank\">https://codepen.io/souryacodes/full/VOJvLM</a>\r\n\r\n\r\n<!-- generated by vuetify-issue-helper. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/vuetifyjs/vuetify/issues/comments/499791784","html_url":"https://github.com/vuetifyjs/vuetify/issues/7425#issuecomment-499791784","issue_url":"https://api.github.com/repos/vuetifyjs/vuetify/issues/7425","id":499791784,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5OTc5MTc4NA==","user":{"login":"sourybunny","id":38237352,"node_id":"MDQ6VXNlcjM4MjM3MzUy","avatar_url":"https://avatars2.githubusercontent.com/u/38237352?v=4","gravatar_id":"","url":"https://api.github.com/users/sourybunny","html_url":"https://github.com/sourybunny","followers_url":"https://api.github.com/users/sourybunny/followers","following_url":"https://api.github.com/users/sourybunny/following{/other_user}","gists_url":"https://api.github.com/users/sourybunny/gists{/gist_id}","starred_url":"https://api.github.com/users/sourybunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourybunny/subscriptions","organizations_url":"https://api.github.com/users/sourybunny/orgs","repos_url":"https://api.github.com/users/sourybunny/repos","events_url":"https://api.github.com/users/sourybunny/events{/privacy}","received_events_url":"https://api.github.com/users/sourybunny/received_events","type":"User","site_admin":false},"created_at":"2019-06-07T07:49:11Z","updated_at":"2019-06-07T07:49:11Z","author_association":"NONE","body":"Oops, My bad, that was a wrong test case,\r\nI'm talking about this.\r\n![codepen-2](https://user-images.githubusercontent.com/38237352/59089042-c9dd5900-8926-11e9-9be3-2353f8cb9ca5.png)\r\n"}}
{"actor":{"display_login":"sourybunny"}}