Skip to content

Commit

Permalink
Username field should not be autocapitalized (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexberazouski committed Jan 21, 2019
1 parent c9f4b4f commit 847f031
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/vaadin-login-overlay.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<link rel="import" href="vaadin-login-mixin.html">
<link rel="import" href="vaadin-login-overlay-wrapper.html">


<dom-module id="vaadin-login-overlay">
<template>
<style>
Expand Down Expand Up @@ -44,11 +43,14 @@
on-forgot-password="_handleEvent">

<form id="loginForm" method="POST" action$="[[action]]" slot="form">
<vaadin-text-field name="username" label="[[i18n.form.username]]" id="username" required on-keydown="_handleInputKeydown">
<vaadin-text-field name="username" label="[[i18n.form.username]]"
id="username" required on-keydown="_handleInputKeydown"
autocapitalize="none" autocomplete="off" autocorrect="off" spellcheck="false">
<input type="text" slot="input">
</vaadin-text-field>

<vaadin-password-field name="password" label="[[i18n.form.password]]" id="password" required on-keydown="_handleInputKeydown">
<vaadin-password-field name="password" label="[[i18n.form.password]]" id="password" required on-keydown="_handleInputKeydown"
spellcheck="false">
<input type="password" slot="input">
</vaadin-password-field>

Expand Down
7 changes: 5 additions & 2 deletions src/vaadin-login.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,14 @@ <h5 part="error-message-title">[[i18n.errorMessage.title]]</h5>

<slot name="form">
<form id="loginForm" method="POST" action$="[[action]]">
<vaadin-text-field name="username" label="[[i18n.form.username]]" id="username" required on-keydown="_handleInputKeydown">
<vaadin-text-field name="username" label="[[i18n.form.username]]"
id="username" required on-keydown="_handleInputKeydown"
autocapitalize="none" autocomplete="off" autocorrect="off" spellcheck="false">
<input type="text" slot="input">
</vaadin-text-field>

<vaadin-password-field name="password" label="[[i18n.form.password]]" id="password" required on-keydown="_handleInputKeydown">
<vaadin-password-field name="password" label="[[i18n.form.password]]" id="password" required on-keydown="_handleInputKeydown"
spellcheck="false">
<input type="password" slot="input">
</vaadin-password-field>

Expand Down

0 comments on commit 847f031

Please sign in to comment.