Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Commit

Permalink
[release] 1.0.0-rc3
Browse files Browse the repository at this point in the history
- Removed lodash dependency, reducing overall package size
- Removed iternally rendered `<label>`, deprecating `labelText` prop
  • Loading branch information
Stephen Rivas Jr committed May 25, 2016
1 parent 4e9c772 commit 90d28f1
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 15,148 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
v1.0.0-rc3 - 25 May 2016
--------------------------------------

- Removed lodash dependency, reducing overall package size
- Removed iternally rendered `<label>`, deprecating `labelText` prop


v1.0.0-rc2 - 31 Mar 2016
--------------------------------------

Expand Down
13 changes: 2 additions & 11 deletions build/lib/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var React = require('react');
var lodash = require('lodash');
var scrollIntoView = require('dom-scroll-into-view');

var _debugStates = [];
Expand All @@ -19,7 +18,6 @@ var Autocomplete = React.createClass({
renderItem: React.PropTypes.func.isRequired,
menuStyle: React.PropTypes.object,
inputProps: React.PropTypes.object,
labelText: React.PropTypes.string,
wrapperProps: React.PropTypes.object,
wrapperStyle: React.PropTypes.object
},
Expand All @@ -32,7 +30,6 @@ var Autocomplete = React.createClass({
display: 'inline-block'
},
inputProps: {},
labelText: '',
onChange: function onChange() {},
onSelect: function onSelect(value, item) {},
renderMenu: function renderMenu(items, value, style) {
Expand Down Expand Up @@ -62,7 +59,6 @@ var Autocomplete = React.createClass({
},

componentWillMount: function componentWillMount() {
this.id = lodash.uniqueId('autocomplete-');
this._ignoreBlur = false;
this._performAutoCompleteOnUpdate = false;
this._performAutoCompleteOnKeyUp = false;
Expand Down Expand Up @@ -324,14 +320,10 @@ var Autocomplete = React.createClass({
state: this.state
});
}

return React.createElement(
'div',
_extends({ style: _extends({}, this.props.wrapperStyle) }, this.props.wrapperProps),
React.createElement(
'label',
{ htmlFor: this.id, ref: 'label' },
this.props.labelText
),
React.createElement('input', _extends({}, this.props.inputProps, {
role: 'combobox',
'aria-autocomplete': 'both',
Expand All @@ -348,8 +340,7 @@ var Autocomplete = React.createClass({
return _this7.handleKeyUp(event);
},
onClick: this.handleInputClick,
value: this.props.value,
id: this.id
value: this.props.value
})),
this.state.isOpen && this.renderMenu(),
this.props.debug && React.createElement(
Expand Down
3 changes: 1 addition & 2 deletions build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-autocomplete",
"version": "1.0.0-rc1",
"version": "1.0.0-rc3",
"description": "Accessible, extensible, Autocomplete for React.js",
"main": "./build/lib/index.js",
"repository": {
Expand All @@ -26,7 +26,6 @@
"dependencies": {
"babel-preset-es2015": "^6.5.0",
"dom-scroll-into-view": "1.0.1",
"lodash": "^4.5.0",
"react": "^0.14.7",
"react-dom": "^0.14.7"
}
Expand Down
Loading

0 comments on commit 90d28f1

Please sign in to comment.