itsa-react-select 16.0.12 → 16.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component.jsx +6 -1
- package/package.json +1 -1
package/lib/component.jsx
CHANGED
|
@@ -140,7 +140,12 @@ class Select extends React.Component {
|
|
|
140
140
|
btnPressed: true
|
|
141
141
|
}, () => {
|
|
142
142
|
instance._removeTimer && instance._removeTimer.cancel();
|
|
143
|
-
|
|
143
|
+
if (newExpanded) {
|
|
144
|
+
instance._focusContainer.focusActiveElement();
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
instance.focus(true, BTN_REFOCES_TRANS_TIME);
|
|
148
|
+
}
|
|
144
149
|
// need to go async --> handleClick goes so quick, that is is before handleMouseDown
|
|
145
150
|
async(() => {
|
|
146
151
|
if (!instance._mouseDown && !simulatedClick) {
|