Skip to content

Commit 7a18067

Browse files
committed
build for 2.3.2
1 parent 71f6697 commit 7a18067

27 files changed

+119
-61
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-widgets",
3-
"version": "2.3.1",
3+
"version": "2.3.2",
44
"main": "dist/react-widgets.js",
55
"description": "A set of input widgets for React",
66
"main": "dist/react-widgets.js",

dist/css/react-widgets.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,9 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
386386
background-color: transparent;
387387
padding-top: 0;
388388
padding-bottom: 0;
389+
padding-right: 0;
390+
overflow: hidden;
391+
text-overflow: ellipsis;
389392
}
390393
.rw-dropdownlist > .rw-select,
391394
.rw-dropdownlist > .rw-select.rw-rtl {
@@ -608,6 +611,7 @@ ul.rw-list.rw-list-grouped > li.rw-list-option,
608611
border-width: 0;
609612
line-height: normal;
610613
width: auto;
614+
max-width: 100%;
611615
}
612616
.rw-multiselect-wrapper > .rw-input::-moz-placeholder {
613617
color: #999999;

dist/react-widgets.js

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

docs/public/docs.css

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

docs/public/docs.js

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

lib/Calendar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ var Calendar = React.createClass({
217217
return _this._focus(true);
218218
} },
219219
React.createElement(View, babelHelpers._extends({}, viewProps, {
220+
tabIndex: "-1",
220221
ref: "currentView",
221222
key: key,
222223
id: id,

lib/Century.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ module.exports = React.createClass({
7777
{ onClick: _this.props.onChange.bind(null, d),
7878
tabIndex: "-1",
7979
id: focused ? id : undefined,
80-
"aria-selected": selected,
80+
"aria-pressed": selected,
8181
"aria-disabled": _this.props.disabled,
82-
disabled: _this.props.disabled,
82+
disabled: _this.props.disabled || undefined,
8383
className: cx({
8484
"rw-off-range": !inCentury(date, _this.props.value),
8585
"rw-state-focus": focused,

lib/Combobox.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ var ComboBox = React.createClass({
192192
React.createElement(
193193
Popup,
194194
babelHelpers._extends({}, _.pick(this.props, Object.keys(compat.type(Popup).propTypes)), {
195+
onOpening: function () {
196+
return _this.refs.list.forceUpdate();
197+
},
195198
onRequestClose: this.close }),
196199
React.createElement(
197200
"div",

lib/DateTimePicker.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
var babelHelpers = require("./util/babelHelpers.js");
33
var React = require("react"),
44
invariant = require("react/lib/invariant"),
5+
activeElement = require("react/lib/getActiveElement"),
56
cx = require("classnames"),
67
compat = require("./util/compat"),
78
_ = require("./util/_") //pick, omit, has
@@ -139,6 +140,7 @@ var DateTimePicker = React.createClass({
139140
return _cx;
140141
})()) }),
141142
React.createElement(DateInput, { ref: "valueInput",
143+
"aria-labelledby": this.props["aria-labelledby"],
142144
"aria-activedescendant": this.props.open ? this.props.open === popups.CALENDAR ? this._id("_cal_view_selected_item") : timeOptID : undefined,
143145
"aria-expanded": !!this.props.open,
144146
"aria-busy": !!this.props.busy,
@@ -201,7 +203,10 @@ var DateTimePicker = React.createClass({
201203
{
202204
dropUp: dropUp,
203205
open: this.props.open === popups.TIME,
204-
onRequestClose: this.close },
206+
onRequestClose: this.close,
207+
onOpening: function () {
208+
return _this.refs.timePopup.forceUpdate();
209+
} },
205210
React.createElement(
206211
"div",
207212
null,
@@ -211,6 +216,7 @@ var DateTimePicker = React.createClass({
211216
"aria-hidden": !this.props.open,
212217
style: { maxHeight: 200, height: "auto" },
213218
value: value,
219+
step: this.props.step,
214220
min: this.props.min,
215221
max: this.props.max,
216222
culture: this.props.culture,
@@ -249,6 +255,8 @@ var DateTimePicker = React.createClass({
249255
if (date != this.props.value) change(date, str);
250256
} else if (!dates.eq(date, this.props.value)) change(date, str);
251257
}
258+
259+
//this._focus(true)
252260
},
253261

254262
_keyDown: function (e) {
@@ -268,14 +276,14 @@ var DateTimePicker = React.createClass({
268276
},
269277

270278
//timeout prevents transitions from breaking focus
271-
_focus: function (focused, e) {
279+
_focus: function (focused, isOnFocusEvent, e) {
272280
var _this = this;
273281

274-
var input = this.refs.valueInput;
282+
var inputFocused = activeElement() === this.refs.valueInput.getDOMNode();
275283

276284
this.setTimeout("focus", function () {
277-
278-
if (focused) compat.findDOMNode(input).focus();else _this.close();
285+
//var el = this.refs.valueInput
286+
if (focused) _this.refs.valueInput.focus();else _this.close();
279287

280288
if (focused !== _this.state.focused) {
281289
_this.notify(focused ? "onFocus" : "onBlur", e);

lib/Decade.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ module.exports = React.createClass({
7676
Btn,
7777
{ onClick: _this.props.onChange.bind(null, date), tabIndex: "-1",
7878
id: focused ? id : undefined,
79-
"aria-selected": selected,
79+
"aria-pressed": selected,
8080
"aria-disabled": _this.props.disabled,
81-
disabled: _this.props.disabled,
81+
disabled: _this.props.disabled || undefined,
8282
className: cx({
8383
"rw-off-range": !inDecade(date, _this.props.value),
8484
"rw-state-focus": focused,

0 commit comments

Comments
 (0)