@refinn/core-ui 0.1.25 → 0.1.26
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.cjs +8 -1
- package/dist/index.js +8 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2118,7 +2118,12 @@ var Dropdown = (0, import_react16.forwardRef)(
|
|
|
2118
2118
|
}, rest), {
|
|
2119
2119
|
onClick: () => {
|
|
2120
2120
|
var _a2;
|
|
2121
|
-
|
|
2121
|
+
if (disabled) return;
|
|
2122
|
+
if (!isOpen) {
|
|
2123
|
+
setIsOpen(true);
|
|
2124
|
+
setFilterText("");
|
|
2125
|
+
}
|
|
2126
|
+
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
2122
2127
|
},
|
|
2123
2128
|
className: triggerClassName,
|
|
2124
2129
|
children: [
|
|
@@ -2180,6 +2185,8 @@ var Dropdown = (0, import_react16.forwardRef)(
|
|
|
2180
2185
|
setIsOpen(false);
|
|
2181
2186
|
setQuery(value.label || "");
|
|
2182
2187
|
} else {
|
|
2188
|
+
setIsOpen(true);
|
|
2189
|
+
setFilterText("");
|
|
2183
2190
|
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
2184
2191
|
}
|
|
2185
2192
|
}
|
package/dist/index.js
CHANGED
|
@@ -2115,7 +2115,12 @@ var Dropdown = forwardRef16(
|
|
|
2115
2115
|
}, rest), {
|
|
2116
2116
|
onClick: () => {
|
|
2117
2117
|
var _a2;
|
|
2118
|
-
|
|
2118
|
+
if (disabled) return;
|
|
2119
|
+
if (!isOpen) {
|
|
2120
|
+
setIsOpen(true);
|
|
2121
|
+
setFilterText("");
|
|
2122
|
+
}
|
|
2123
|
+
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
2119
2124
|
},
|
|
2120
2125
|
className: triggerClassName,
|
|
2121
2126
|
children: [
|
|
@@ -2177,6 +2182,8 @@ var Dropdown = forwardRef16(
|
|
|
2177
2182
|
setIsOpen(false);
|
|
2178
2183
|
setQuery(value.label || "");
|
|
2179
2184
|
} else {
|
|
2185
|
+
setIsOpen(true);
|
|
2186
|
+
setFilterText("");
|
|
2180
2187
|
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
2181
2188
|
}
|
|
2182
2189
|
}
|