pryley / float-labels.js

A zero-dependency plugin that applies the float label pattern to a form.
https://pryley.github.io/float-labels.js/
MIT License
88 stars 22 forks source link

Chrome V66 placeholder doesn't dissapear on-focus #28

Closed Valerz closed 6 years ago

Valerz commented 6 years ago

Hello, With Chrome version 66 when you focus on the input field the placeholder text doesn't disappear until you start typing, however in IE11 it does.

EDIT: I added to css:

.fl-form .fl-has-focus input.fl-input::-webkit-input-placeholder { color: #fff; }

Seems to have fixed it. Not sure if this is best way to go around it.

You can close ticket if so.

pryley commented 6 years ago

This is non-standard behaviour that is caused by a bug in Internet Explorer 10-11.

As it does not affect the functionality of Float Labels, I am closing this issue.

Please also see: https://stackoverflow.com/questions/14445891/keep-placeholder-on-focus-in-ie10/16138480#24319798