angular-chrome-autofill-fix

WebJar for angular-chrome-autofill-fix

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks Auto Application Layer Libs Code Generators
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-chrome-autofill-fix
Last Version

Last Version

0.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

angular-chrome-autofill-fix
WebJar for angular-chrome-autofill-fix
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/alirezamirian/angular-chrome-autofill-fix

Download angular-chrome-autofill-fix

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-chrome-autofill-fix/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-chrome-autofill-fix</artifactId>
    <version>0.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-chrome-autofill-fix/
implementation 'org.webjars.bower:angular-chrome-autofill-fix:0.0.4'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-chrome-autofill-fix/
implementation ("org.webjars.bower:angular-chrome-autofill-fix:0.0.4")
'org.webjars.bower:angular-chrome-autofill-fix:jar:0.0.4'
<dependency org="org.webjars.bower" name="angular-chrome-autofill-fix" rev="0.0.4">
  <artifact name="angular-chrome-autofill-fix" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-chrome-autofill-fix', version='0.0.4')
)
libraryDependencies += "org.webjars.bower" % "angular-chrome-autofill-fix" % "0.0.4"
[org.webjars.bower/angular-chrome-autofill-fix "0.0.4"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

angular-chrome-autofill-fix

A tiny fix for chrome problems regarding auto-filled passwords. This includes a fix for angular-material inputs to prevent label collapse (until a fix get pulled into repo), and another fix which overrides the default required validator to take Chrome auto-filling into account.

Install

bower install angular-chrome-autofill-fix --save

Usage

just add dependency chrome-autofill-fix`:

angular.module('yourApp', ['chrome-autofill-fix']);

Problem example

In the following form, there is an ng-disabled directive on the login button in order to disable it when the form is invalid. As you see the form is auto-filled and so it should be valid but it's not. angular-chrome-autofill-fix fixes this by overriding required validator in a way that reports valid state when the password field is autofilled by chrome.

chrome-autofill

Known issues

  • It's kind of strange but seemingly it doesn't work on Chrome for Ubuntu! See the issue

Versions

Version
0.0.4