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.cjs
CHANGED
|
@@ -1921,7 +1921,7 @@ function SCAutocomplete({
|
|
|
1921
1921
|
import_material9.Autocomplete,
|
|
1922
1922
|
__spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, hayOnComponentClickGlobal ? { disableCloseOnSelect: true } : {}), hayOnComponentClickGlobal ? { blurOnSelect: false } : {}), hayOnComponentClickGlobal ? { open } : {}), hayOnComponentClickGlobal ? { onOpen: () => setOpen(true) } : {}), hayOnComponentClickGlobal ? {
|
|
1923
1923
|
onClose: (event2, reason) => {
|
|
1924
|
-
if (
|
|
1924
|
+
if (["blur", "selectOption"].includes(reason)) return;
|
|
1925
1925
|
setOpen(false);
|
|
1926
1926
|
}
|
|
1927
1927
|
} : {}), {
|
|
@@ -2009,6 +2009,8 @@ function SCAutocomplete({
|
|
|
2009
2009
|
{
|
|
2010
2010
|
onClick: (e) => {
|
|
2011
2011
|
var _a2;
|
|
2012
|
+
e.preventDefault();
|
|
2013
|
+
e.stopPropagation();
|
|
2012
2014
|
(_a2 = item.onComponentClick) == null ? void 0 : _a2.call(item, e, option);
|
|
2013
2015
|
}
|
|
2014
2016
|
},
|