Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

select-pure

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

select-pure - npm Package Compare versions

Comparing version 2.0.0-alpha.12 to 2.0.0-alpha.13

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [2.0.0-alpha.13](https://github.com/dudyn5ky1/select-pure/compare/select-pure@2.0.0-alpha.12...select-pure@2.0.0-alpha.13) (2021-05-01)
**Note:** Version bump only for package select-pure
# [2.0.0-alpha.12](https://github.com/dudyn5ky1/select-pure/compare/select-pure@2.0.0-alpha.11...select-pure@2.0.0-alpha.12) (2021-04-30)

@@ -8,0 +16,0 @@

4

package.json
{
"name": "select-pure",
"version": "2.0.0-alpha.12",
"version": "2.0.0-alpha.13",
"description": "Custom JavaScript <select> component. Easy-to-use, accessible, mobile friendly and super efficient",

@@ -15,3 +15,3 @@ "author": {

"build:watch": "tsc -w",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build && cp -f ./../../README.md README.md"
},

@@ -18,0 +18,0 @@ "keywords": [

@@ -44,3 +44,3 @@ # Custom JavaScript `<select>` component. Easy-to-use, accessible, mobile friendly and super efficient.

<option-pure value="US">USA</option-pure>
<option-pure value="RU" disabled>Russia</option-pure>
<option-pure value="US" disabled>Russia</option-pure>
</select-pure>

@@ -63,3 +63,3 @@ ```

`<select-pure>` supports the following attributes: `name`, `id` and `disabled`.
`<select-pure>` supports the following attributes: `name`, `id`, `multiple`, `default-label` and `disabled`.

@@ -70,6 +70,8 @@ `<option-pure>` supports `value`, `label`, `disabled`, `selected` and `hidden` attributes.

| property | description |
|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| selectedIndex | Returns index of the selected option. You can also manipulate selected value with changing this property (`selectPure.selectedIndex = 2`). Just like in the native `<select>`. |
| value | Returns selected value. |
| property | description |
|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| selectedIndex | Returns index of the selected option. You can also manipulate selected value with changing this property (`selectPure.selectedIndex = 2`). Just like in the native `<select>`. |
| value | Returns selected value. |
| selectedOptions | Returns and array of selected `<option>`s. Works only in `multiple` mode. |
| values | Returns and array of selected values. Works only in `multiple` mode. |

@@ -140,2 +142,3 @@ ### Callbacks

- [ ] Make sure Select behaves correctly when attributes are changed or options are removed from the DOM (MutationObserver);
- [ ] Sometimes one select scrolls dropdown in the others?

@@ -148,5 +151,4 @@ 2.1

## License
```MIT```
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