oolib 2.92.3 → 2.92.5

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.
@@ -117,16 +117,18 @@ var OptionsMulti = function (_a) {
117
117
  borderBottom: "1px solid ".concat(greyColor40),
118
118
  } },
119
119
  react_1.default.createElement(Typo_1.LABEL, { invert: invert, style: { padding: "2rem", paddingBottom: 0 }, color: colors_1.colors.greyColor70 }, "selected"),
120
- selectedOptions.map(function (d) { return (react_1.default.createElement(styled_1.StyledOption, { invert: invert, key: d.value, isSelected: opIsSelected(d), S: S, onClick: function (e) {
121
- if (!d.loading) {
122
- handleSelect(d);
123
- setSearchString("");
124
- setSearchBarFocus(true); //refocus on searchbar after select
125
- }
126
- },
127
- //this is important cuz if we dont, then the option will have the light blue background of the 'selected' state
128
- //is a bit hacky, but will do for now.
129
- style: { backgroundColor: invert ? colors_1.colors.greyColor90 : white } }, createOption(d))); })));
120
+ selectedOptions.map(function (d) {
121
+ return (react_1.default.createElement(styled_1.StyledOption, { invert: invert, key: d.value, isSelected: opIsSelected(d), S: S, onClick: function (e) {
122
+ if (!d.loading) {
123
+ handleSelect(d);
124
+ setSearchString("");
125
+ setSearchBarFocus(true); //refocus on searchbar after select
126
+ }
127
+ },
128
+ //this is important cuz if we dont, then the option will have the light blue background of the 'selected' state
129
+ //is a bit hacky, but will do for now.
130
+ style: { backgroundColor: invert ? colors_1.colors.greyColor90 : white } }, createOption(d)));
131
+ })));
130
132
  };
131
133
  var genSearchBar = function () { return (react_1.default.createElement("div", { style: {
132
134
  position: "sticky",
@@ -41,6 +41,8 @@ function ModalConfirmAction(_a) {
41
41
  var _d = (0, react_1.useState)(false), modal = _d[0], setModal = _d[1];
42
42
  var callback;
43
43
  var handleParentClick = function (e) {
44
+ // usecase: actionMenu in table
45
+ e.stopPropagation();
44
46
  setModal(e);
45
47
  };
46
48
  var handleConfirm = function (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.92.3",
3
+ "version": "2.92.5",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",