🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

react-checkbox-group

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-checkbox-group - npm Package Compare versions

Comparing version

to
3.0.1

2

package.json
{
"name": "react-checkbox-group",
"version": "3.0.0",
"version": "3.0.1",
"description": "Sensible checkbox groups manipulation for DOM.",

@@ -5,0 +5,0 @@ "main": "react-checkbox-group.js",

@@ -47,3 +47,4 @@ 'use strict';

type: 'checkbox',
name: name
name: name,
disabled: this.props.disabled
}, optional));

@@ -50,0 +51,0 @@ }

@@ -31,2 +31,3 @@ import React, {PropTypes} from 'react';

name={name}
disabled={this.props.disabled}
{...optional} />

@@ -33,0 +34,0 @@ );

@@ -29,2 +29,17 @@ import React from 'react';

it('Disables a box when `disabled` is used', function() {
var disabled = true;
var component = renderIntoDocument(
<CheckboxGroup name="fruit">
<Checkbox value="kiwi" disabled={disabled}/>
<Checkbox value="pineapple" disabled={disabled}/>
<Checkbox value="watermelon"/>
</CheckboxGroup>
);
var disabledBoxes = ReactDOM.findDOMNode(component).querySelectorAll('input[type="checkbox"][name="fruit"][disabled]');
expect(disabledBoxes.length).to.equal(2);
});
it('Checks the correct boxes when `defaultValue` is used', function() {

@@ -31,0 +46,0 @@ var fruits = ['watermelon', 'pineapple'];