componentes-sinco 1.1.20 → 1.1.21
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 +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1839,7 +1839,7 @@ function SCAutocomplete({
|
|
|
1839
1839
|
Autocomplete,
|
|
1840
1840
|
__spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, hayOnComponentClickGlobal ? { disableCloseOnSelect: true } : {}), hayOnComponentClickGlobal ? { blurOnSelect: false } : {}), hayOnComponentClickGlobal ? { open } : {}), hayOnComponentClickGlobal ? { onOpen: () => setOpen(true) } : {}), hayOnComponentClickGlobal ? {
|
|
1841
1841
|
onClose: (event2, reason) => {
|
|
1842
|
-
if (
|
|
1842
|
+
if (["blur", "selectOption"].includes(reason)) return;
|
|
1843
1843
|
setOpen(false);
|
|
1844
1844
|
}
|
|
1845
1845
|
} : {}), {
|
|
@@ -1927,6 +1927,8 @@ function SCAutocomplete({
|
|
|
1927
1927
|
{
|
|
1928
1928
|
onClick: (e) => {
|
|
1929
1929
|
var _a2;
|
|
1930
|
+
e.preventDefault();
|
|
1931
|
+
e.stopPropagation();
|
|
1930
1932
|
(_a2 = item.onComponentClick) == null ? void 0 : _a2.call(item, e, option);
|
|
1931
1933
|
}
|
|
1932
1934
|
},
|