Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model Data Types all become text when touched #37

Open
andyfensham opened this issue Aug 23, 2018 · 3 comments
Open

Model Data Types all become text when touched #37

andyfensham opened this issue Aug 23, 2018 · 3 comments

Comments

@andyfensham
Copy link

All my model values becomes text the moment I start typing. So even if they came in as numbers before, and my field is an input->number, the moment I start typing, I get back text.

@matt-sanders
Copy link
Contributor

hmm, I'll think about the best way to implement this. Potentially could be solved by just using the model.number directive but that would have to be built into whatever formly library you're using... Open to suggestions here, on whether we make this declared on the form schema, or the templates...

@andyfensham
Copy link
Author

In the angular-formly one it keeps it as it receives it. As the strength in formly is to get json form structure back from a backend server, I think model.number will limit the flexibility.

@matt-sanders
Copy link
Contributor

OK, I'll have to think about the best way to implement this as we're currently just using the v-model directive from Vue so we might have to have an in-between that keeps things as the same type. Probably not something that will be fixed straight away as my availability to work on this at the moment is a bit limited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants