intelicoreact 1.1.33 → 1.1.34

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.
@@ -99,10 +99,10 @@ var Modal = function Modal(_ref2) {
99
99
  }
100
100
  };
101
101
  (0, _react.useEffect)(function () {
102
- if (submitOnEnter) document.addEventListener('keyup', handle.pressKey);
102
+ if (submitOnEnter) document.addEventListener('keyup', handle.pressEnter);
103
103
  if (closeOnEsc) document.addEventListener('keyup', handle.pressEsc);
104
104
  return function () {
105
- document.removeEventListener('keyup', handle.pressKey);
105
+ document.removeEventListener('keyup', handle.pressEnter);
106
106
  document.removeEventListener('keyup', handle.pressEsc);
107
107
  };
108
108
  }, [submitOnEnter, closeOnEsc]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.1.33",
3
+ "version": "1.1.34",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [