itsa-react-focuscontainer 16.0.8 → 16.0.9

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.
@@ -355,12 +355,10 @@ const defaultFnSetFocus = function(e) {
355
355
  // we need to go async, otherwise the `focus`-event won't trigger a resync,
356
356
  // because `state.noResync` would still be `true`.
357
357
  async(() => {
358
- if ((node===document.activeElement) || props.scrollIntoView) {
359
- node.itsa_scrollIntoView && node.itsa_scrollIntoView(null, null, transitionTime, marginTop, marginLeft);
360
- }
361
- else {
362
- node.focus();
358
+ if (node.itsa_scrollIntoView && ((node===document.activeElement) || props.scrollIntoView)) {
359
+ node.itsa_scrollIntoView(null, null, transitionTime, marginTop, marginLeft);
363
360
  }
361
+ node.focus();
364
362
  resolve(true);
365
363
  });
366
364
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itsa-react-focuscontainer",
3
- "version": "16.0.8",
3
+ "version": "16.0.9",
4
4
  "description": "React component: focussable container that managed the focus",
5
5
  "author": [
6
6
  {