indicator-ui 0.1.71 → 0.1.72
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.
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70852,6 +70852,11 @@ function SelectField(_ref) {
|
|
|
70852
70852
|
}, _config__WEBPACK_IMPORTED_MODULE_8__.SEARCHING_DELAY_TIME);
|
|
70853
70853
|
}
|
|
70854
70854
|
};
|
|
70855
|
+
var focusOnInput = function focusOnInput() {
|
|
70856
|
+
var _inputRef$current;
|
|
70857
|
+
var field = (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.querySelector('input');
|
|
70858
|
+
field === null || field === void 0 || field.focus();
|
|
70859
|
+
};
|
|
70855
70860
|
var getViewField = function getViewField() {
|
|
70856
70861
|
if (searching !== undefined) {
|
|
70857
70862
|
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_FlexField__WEBPACK_IMPORTED_MODULE_5__.FlexField, {
|
|
@@ -70868,7 +70873,12 @@ function SelectField(_ref) {
|
|
|
70868
70873
|
onBlur: function onBlur() {
|
|
70869
70874
|
return setIsFocus(false);
|
|
70870
70875
|
},
|
|
70871
|
-
onDropdownClick:
|
|
70876
|
+
onDropdownClick: function onDropdownClick() {
|
|
70877
|
+
if (!getIsShow()) {
|
|
70878
|
+
focusOnInput();
|
|
70879
|
+
}
|
|
70880
|
+
switching();
|
|
70881
|
+
},
|
|
70872
70882
|
isError: isError,
|
|
70873
70883
|
placeholder: placeholder,
|
|
70874
70884
|
dropdown: true,
|