intelicoreact 1.4.28 → 1.4.29
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.
|
@@ -128,6 +128,7 @@ const TagsDropdown = _ref => {
|
|
|
128
128
|
searchValueRef.current = value;
|
|
129
129
|
};
|
|
130
130
|
|
|
131
|
+
const editingOptionInputRef = (0, _react.useRef)(null);
|
|
131
132
|
const [options, setOptions] = (0, _react.useState)([]);
|
|
132
133
|
const [editingOption, setEditingOptionState] = (0, _react.useState)(null);
|
|
133
134
|
|
|
@@ -411,7 +412,8 @@ const TagsDropdown = _ref => {
|
|
|
411
412
|
onKeyDown: keyCode => {
|
|
412
413
|
if (keyCode === 13) saveEditingOption();
|
|
413
414
|
},
|
|
414
|
-
symbolsLimit: "50"
|
|
415
|
+
symbolsLimit: "50",
|
|
416
|
+
ref: editingOptionInputRef
|
|
415
417
|
}), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
416
418
|
variant: "link",
|
|
417
419
|
icon: /*#__PURE__*/_react.default.createElement(_reactFeather.Trash2, null),
|
|
@@ -1022,7 +1024,12 @@ const TagsDropdown = _ref => {
|
|
|
1022
1024
|
})));
|
|
1023
1025
|
}, [optionsProp]);
|
|
1024
1026
|
(0, _react.useEffect)(() => {
|
|
1025
|
-
if (editingOption)
|
|
1027
|
+
if (editingOption) {
|
|
1028
|
+
var _editingOptionInputRe, _editingOptionInputRe2;
|
|
1029
|
+
|
|
1030
|
+
setEditOptionModalStyles();
|
|
1031
|
+
editingOptionInputRef === null || editingOptionInputRef === void 0 ? void 0 : (_editingOptionInputRe = editingOptionInputRef.current) === null || _editingOptionInputRe === void 0 ? void 0 : (_editingOptionInputRe2 = _editingOptionInputRe.focus) === null || _editingOptionInputRe2 === void 0 ? void 0 : _editingOptionInputRe2.call(_editingOptionInputRe);
|
|
1032
|
+
}
|
|
1026
1033
|
}, [editingOption === null || editingOption === void 0 ? void 0 : editingOption.value]);
|
|
1027
1034
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
1028
1035
|
className: (0, _classnames.default)(RC, className, {
|