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) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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) {
|