Socket
Book a DemoInstallSign in
Socket

@ngx-ext/disabled-autocomplete

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngx-ext/disabled-autocomplete

> **Directive** for inputs disabling browser's auto-complete/auto-fill functionalities. Aims to handle the newest versions of Chrome, Edge, Opera, Safari and Firefox.

0.0.2
latest
npmnpm
Version published
Weekly downloads
9
12.5%
Maintainers
1
Weekly downloads
 
Created
Source

@ngx-ext/disabled-autocomplete

Directive for inputs disabling browser's auto-complete/auto-fill functionalities. Aims to handle the newest versions of Chrome, Edge, Opera, Safari and Firefox.

This library was generated with Angular CLI version 11.2.6, but should work with every Angular version.

Getting started

Just run: ng add @ngx-ext/disabled-autocomplete

Or manually: npm install @ngx-ext/disabled-autocomplete, and then import DisabledAutocompleteModule to your AppModule or wherever needed.

Usage

<input type="search" name="search" disabledAutocomplete />

How it works?

  • Makes the input readonly until focused (with a fix for mobile Safari)
  • Sets random id (if no id defined already)
  • Sets autocomplete="new-password"
  • Sets autocapitalize="none" (only if not set)
  • Sets spellcheck="off" (only if not set)
  • Sets autocorrect="off" (only if not set)

FAQs

Package last updated on 17 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.