Skip to content

Commit

Permalink
[added] pass describedBy to datepicker
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Oct 3, 2015
1 parent 6fe7a39 commit 3be1c86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DateTimePicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ var DateTimePicker = React.createClass({
, culture, duration, step, messages, min, max, busy
, placeholder, disabled, readOnly, name, dropUp
, timeComponent, autoFocus
, 'aria-labelledby': ariaLabelledby } = this.props;
, 'aria-labelledby': ariaLabelledby
, 'aria-describedby': ariaDescribedby } = this.props;

let { focused } = this.state;

Expand Down Expand Up @@ -187,8 +188,8 @@ var DateTimePicker = React.createClass({
autoFocus={autoFocus}
tabIndex={tabIndex || 0}
role='combobox'
autoFocus={this.props.autoFocus}
aria-labelledby={ariaLabelledby}
aria-describedby ={ariaDescribedby}
aria-expanded={!!open}
aria-busy={!!busy}
aria-owns={owns.trim()}
Expand Down

0 comments on commit 3be1c86

Please sign in to comment.