I started playing around with your solution and it works great thank you I do have 1 comment though…
When you click on the input, there’s an initial blue “flash” that occurs on the left of the input. It’s not immediately obvious as you have it, but when you want to center the input you get this blue “flash” that occurs to the left of the input and looks very strange, any idea how to get around that?
@mhartington playing around with your solution as well. Does one have to use SCSS to get it to work? I took your directive, the HTML and the CSS and incorporated it into my app but it didn’t work at all. I’m just using a regular css file though, no SCSS. I’m also not referencing the nightly, not sure if that’s required?
[quote=“edwrede_ZA, post:9, topic:15267”]
When you click on the input, there’s an initial blue “flash” that occurs on the left of the input. It’s not immediately obvious as you have it, but when you want to center the input you get this blue “flash” that occurs to the left of the input and looks very strange, any idea how to get around that?
[/quote]It’s based on the original material design animation and it has it. To remove that “flash” simply remove from the directive template:
Nope, you don’t have to use SCSS, I did because its what I prefer to author in.
I have made a directive for this as well and to simplify the process and have angular events.
@mhartington thanks for your solution! It works perfectly except for one thing. If I stack more than 2 labels ontop of each other an test in the iphone simulator. By highlighting the third, fourth… label the whole ionic app moves down for a split second and then back up. When this happens the black background is shown on top. (It looks as if there was a margin-top on the whole app)
Hi. For some reason both the example provided here have some issue in actual ios device. When you tap on the text box to write the entered text comes on the top of placeholder and place holder never goes to top. But if you tap somewhere else first then come back to second text box it works.
I love this directive. But, when I include in my project, I get White Screen Of Death. Not sure why. Nothing outputs to console telling me there is an issue. Stumped. i’ve written/included directives before without issue. Ever experienced this?