New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fake-select

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fake-select

A library that update standard browser select input to Fake Select.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Fake Select

Very simple library that update standard browser select input to Fake Select.

Features:

  • Use standard <select> for init
  • Throw change event when selection is updated by Fake Select
  • Listen change event and change Fake Select selection when original <select> was changed
  • Support multiple attribute (so multiple selection)

See Warning section.

Usage

<p>As a multiple selector:</p>
<select name="items[]" placeholder="Please, select available options&hellip;" multiple>
  <option>Option 1</option>
  <option selected>Option 2</option>
  <option selected>Option 3</option>
</select>

<p>As single selector:</p>
<select name="item" placeholder="Please, select available option&hellip;">
  <option>Option 1</option>
  <option>Option 2</option>
  <option selected>Option 3</option>
</select>
import { updateSelectToFake } from 'fake-select';
updateSelectToFake();

Warning

Tested only in latest Chrome and Safari. So we still need to decide it stability.

Also:

  • Need tests
  • Need real integrations and feedback
  • Do not support keyboard for now

Keywords

FAQs

Package last updated on 13 Oct 2016

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc