Skip to content

Commit 1b864aa

Browse files
author
Trevor Burnham
committed
Build version 1.0.0-rc.3.patch4
1 parent da685ad commit 1b864aa

File tree

11 files changed

+18280
-17908
lines changed

11 files changed

+18280
-17908
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dist/react-select-plus.min.js",
55
"dist/react-select-plus.min.css"
66
],
7-
"version": "1.0.0-rc.3.patch3",
7+
"version": "1.0.0-rc.3.patch4",
88
"homepage": "https://github.com/HubSpot/react-select-plus",
99
"authors": [
1010
"Trevor Burnham"

dist/react-select-plus.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ function reduce(obj) {
297297
var AsyncCreatable = _react2['default'].createClass({
298298
displayName: 'AsyncCreatableSelect',
299299

300+
focus: function focus() {
301+
this.select.focus();
302+
},
303+
300304
render: function render() {
301305
var _this = this;
302306

@@ -314,6 +318,7 @@ var AsyncCreatable = _react2['default'].createClass({
314318
return asyncProps.onInputChange(input);
315319
},
316320
ref: function (ref) {
321+
_this.select = ref;
317322
creatableProps.ref(ref);
318323
asyncProps.ref(ref);
319324
}
@@ -555,6 +560,10 @@ var Creatable = _react2['default'].createClass({
555560
}
556561
},
557562

563+
focus: function focus() {
564+
this.select.focus();
565+
},
566+
558567
render: function render() {
559568
var _this = this;
560569

@@ -1004,6 +1013,7 @@ var Select = _react2['default'].createClass({
10041013

10051014
propTypes: {
10061015
addLabelText: _react2['default'].PropTypes.string, // placeholder displayed when you want to add a label on a multi-value input
1016+
'aria-describedby': _react2['default'].PropTypes.string, // HTML ID(s) of element(s) that should be used to describe this input (for assistive tech)
10071017
'aria-label': _react2['default'].PropTypes.string, // Aria label (for assistive tech)
10081018
'aria-labelledby': _react2['default'].PropTypes.string, // HTML ID of an element that should be used as the label (for assistive tech)
10091019
arrowRenderer: _react2['default'].PropTypes.func, // Create drop-down caret element
@@ -1887,6 +1897,7 @@ var Select = _react2['default'].createClass({
18871897
'aria-owns': ariaOwns,
18881898
'aria-haspopup': '' + isOpen,
18891899
'aria-activedescendant': isOpen ? this._instancePrefix + '-option-' + focusedOptionIndex : this._instancePrefix + '-value',
1900+
'aria-describedby': this.props['aria-describedby'],
18901901
'aria-labelledby': this.props['aria-labelledby'],
18911902
'aria-label': this.props['aria-label'],
18921903
className: className,

dist/react-select-plus.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/dist/app.js

Lines changed: 2754 additions & 2436 deletions
Large diffs are not rendered by default.

examples/dist/bundle.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ function reduce(obj) {
294294
var AsyncCreatable = _react2['default'].createClass({
295295
displayName: 'AsyncCreatableSelect',
296296

297+
focus: function focus() {
298+
this.select.focus();
299+
},
300+
297301
render: function render() {
298302
var _this = this;
299303

@@ -311,6 +315,7 @@ var AsyncCreatable = _react2['default'].createClass({
311315
return asyncProps.onInputChange(input);
312316
},
313317
ref: function (ref) {
318+
_this.select = ref;
314319
creatableProps.ref(ref);
315320
asyncProps.ref(ref);
316321
}
@@ -550,6 +555,10 @@ var Creatable = _react2['default'].createClass({
550555
}
551556
},
552557

558+
focus: function focus() {
559+
this.select.focus();
560+
},
561+
553562
render: function render() {
554563
var _this = this;
555564

@@ -1304,6 +1313,7 @@ var Select = _react2['default'].createClass({
13041313

13051314
propTypes: {
13061315
addLabelText: _react2['default'].PropTypes.string, // placeholder displayed when you want to add a label on a multi-value input
1316+
'aria-describedby': _react2['default'].PropTypes.string, // HTML ID(s) of element(s) that should be used to describe this input (for assistive tech)
13071317
'aria-label': _react2['default'].PropTypes.string, // Aria label (for assistive tech)
13081318
'aria-labelledby': _react2['default'].PropTypes.string, // HTML ID of an element that should be used as the label (for assistive tech)
13091319
arrowRenderer: _react2['default'].PropTypes.func, // Create drop-down caret element
@@ -2187,6 +2197,7 @@ var Select = _react2['default'].createClass({
21872197
'aria-owns': ariaOwns,
21882198
'aria-haspopup': '' + isOpen,
21892199
'aria-activedescendant': isOpen ? this._instancePrefix + '-option-' + focusedOptionIndex : this._instancePrefix + '-value',
2200+
'aria-describedby': this.props['aria-describedby'],
21902201
'aria-labelledby': this.props['aria-labelledby'],
21912202
'aria-label': this.props['aria-label'],
21922203
className: className,

0 commit comments

Comments
 (0)