itsa-react-select 16.0.12 → 16.0.14

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 CHANGED
@@ -140,7 +140,12 @@ class Select extends React.Component {
140
140
  btnPressed: true
141
141
  }, () => {
142
142
  instance._removeTimer && instance._removeTimer.cancel();
143
- instance._focusContainer.focusActiveElement();
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itsa-react-select",
3
- "version": "16.0.12",
3
+ "version": "16.0.14",
4
4
  "description": "Nice select for react",
5
5
  "author": [
6
6
  {
package/webpack.config.js CHANGED
@@ -1,9 +1,11 @@
1
1
  module.exports = {
2
2
  entry: "./app.js",
3
+
3
4
  output: {
4
5
  path: "./examples",
5
6
  filename: "app.js" // Template based on keys in entry above
6
7
  },
8
+
7
9
  externals: [
8
10
  {
9
11
  "../externals/react-fiber/build/packages/react/umd/react.production.min.js": "React"
@@ -12,6 +14,7 @@ module.exports = {
12
14
  "../externals/react-fiber/build/packages/react-dom/umd/react-dom.production.min.js": "ReactDOM"
13
15
  }
14
16
  ],
17
+
15
18
  module: {
16
19
  loaders: [
17
20
  {