react-autowhatever
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -76,4 +76,4 @@ 'use strict'; | ||
container: 'react-autowhatever__container', | ||
'container--open': 'react-autowhatever__container--open', | ||
input: 'react-autowhatever__input', | ||
'input--open': 'react-autowhatever__input--open', | ||
'items-container': 'react-autowhatever__items-container', | ||
@@ -274,3 +274,3 @@ item: 'react-autowhatever__item', | ||
'aria-activedescendant': ariaActivedescendant | ||
}, theme('input', 'input', isOpen && 'input--open'), this.props.inputProps, { | ||
}, theme('input', 'input'), this.props.inputProps, { | ||
onKeyDown: this.props.inputProps.onKeyDown && this.onKeyDown | ||
@@ -281,3 +281,3 @@ }); | ||
'div', | ||
theme('container', 'container'), | ||
theme('container', 'container', isOpen && 'container--open'), | ||
_react2['default'].createElement('input', inputProps), | ||
@@ -284,0 +284,0 @@ isOpen && multiSection && this.renderSections(theme), |
{ | ||
"name": "react-autowhatever", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Accessible rendering layer for Autosuggest and Autocomplete components", | ||
@@ -5,0 +5,0 @@ "main": "dist/Autowhatever.js", |
@@ -40,4 +40,4 @@ import React, { Component, PropTypes } from 'react'; | ||
container: 'react-autowhatever__container', | ||
'container--open': 'react-autowhatever__container--open', | ||
input: 'react-autowhatever__input', | ||
'input--open': 'react-autowhatever__input--open', | ||
'items-container': 'react-autowhatever__items-container', | ||
@@ -194,3 +194,3 @@ item: 'react-autowhatever__item', | ||
'aria-activedescendant': ariaActivedescendant, | ||
...theme('input', 'input', isOpen && 'input--open'), | ||
...theme('input', 'input'), | ||
...this.props.inputProps, | ||
@@ -201,3 +201,3 @@ onKeyDown: this.props.inputProps.onKeyDown && this.onKeyDown | ||
return ( | ||
<div {...theme('container', 'container')}> | ||
<div {...theme('container', 'container', isOpen && 'container--open')}> | ||
<input {...inputProps} /> | ||
@@ -204,0 +204,0 @@ {isOpen && multiSection && this.renderSections(theme)} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52025