I put it to true since i was checking if it worked, i have a variable in component that decides.
What does it mean that ‘it has no value’? it should be a class used by the ion-input directive with floating label to tell the label of the input to jump up when there’s a value.
PD: I’m trying to do this as i set up a value for the input before rendering, like if you had login before it will store the username and remember it next time, the password too but just for testing so i don’t have to type each time, but the input label doesn’t jump up when id set from start which should.
The has-value class gets added to the ion-input when the input inside of it has a value. If the input has no value it won’t get added. You shouldn’t have to add this class as we are doing it already.
I’m not sure I completely understand, but if you have a value initially on load of the page the class should be added, if it isn’t added then it’s a bug and please file an issue.
Hi @brandyshea this bug is fixed in the last version of ionic, except for date inputs, it’s the same bug but now it only happens with date inputs (probably is not a good idea to use floating labels with date inputs?).
It seems like this is an issue when a non-number is added to an input with type="number". I can only reproduce it on my desktop Chrome by entering something like eee in the field as it won’t let me enter any other letters. Could you create an issue for this? https://github.com/driftyco/ionic/issues