Input value overlaps floating label (MD)
Hi everybody,
I'm developing a project with framework7 and MD theme but when I set a value to a text field from javascript, the value overlaps the label.
I've tried with framerwork7 2.0.5 but it also happens with the other versions. To fix it I used jquery but you can also use native javascript.
I have solved it in this way but, is there any more elegant way to do it? https://codepen.io/anon/pen/xpYEKV
Thanks in advance.
The error:

My solution:

How the F7 will know that you have set value there? You must then trigger "change" event on modified input
Hi @nolimits4web,
Do you have an example about that? Sorry, but I don't know hoe to do it.
Thanks again.
In v2 there is app.input.checkEmptyState method http://framework7.io/docs/inputs.html#input-app-methods
Otherwise call $('your-input-selector').trigger('change')
ok, perfect !!
In v2 app.input.checkEmptyState('#myname'); works fine, now I'll try in v1.6.4 with $('myname').trigger('change') because in v2 this it doesn't work.
Why in v1.6.4? Because I'm using framework7-vue and I think at the moment it doesn't work with v2, isn't?
thanks.
Hi again,
In v1.6.4 it doesn't work, could you check out my codepen please?
https://codepen.io/anon/pen/xpYEKV
thanks.
Some issue with jQuery, use Dom7 instead https://codepen.io/anon/pen/wpydJa
Works fine !! Thanks so much for your help.