alongubkin / alongubkin/angular-datepicker

Readonly setting prevents :valid pseudo selector from working

Ouverte
#42 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
290
Forks
126
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I'm using :focus and :valid pseudo selectors in my css to move my input placeholders from within the input field up above the respective field as a label.

The angular-datepicker sets the field as readonly which prevents the :valid pseudo selector from working as expected. I was able to remove the code setting the input as readonly and confirm that my placeholder/labels worked as expected.

I was wondering if you could suggest another workaround (maybe a preventDefault()?) to prevent the keyboard from popping up though. Any help would be appreciated.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.