@gustavo-valsechi/client 1.4.123 → 1.4.124
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.
|
@@ -162,7 +162,7 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
162
162
|
};
|
|
163
163
|
const closeTarget = (ref) => {
|
|
164
164
|
const index = import_lodash.default.findIndex(memory, (data) => data.ref.current === ref.current);
|
|
165
|
-
|
|
165
|
+
blur(index);
|
|
166
166
|
};
|
|
167
167
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
168
168
|
TargetContext.Provider,
|
|
@@ -185,11 +185,6 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
185
185
|
if (import_lodash.default.some(insideMemory, (i) => i === index)) return;
|
|
186
186
|
insideMemory.push(index);
|
|
187
187
|
},
|
|
188
|
-
onClick: () => {
|
|
189
|
-
elementFocusable(target, index).focus();
|
|
190
|
-
if (import_lodash.default.some(insideMemory, (i) => i === index)) return;
|
|
191
|
-
insideMemory.push(index);
|
|
192
|
-
},
|
|
193
188
|
onMouseLeave: () => {
|
|
194
189
|
insideMemory.splice(import_lodash.default.findIndex(insideMemory, (i) => i === index), 1);
|
|
195
190
|
},
|
|
@@ -128,7 +128,7 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
128
128
|
};
|
|
129
129
|
const closeTarget = (ref) => {
|
|
130
130
|
const index = _.findIndex(memory, (data) => data.ref.current === ref.current);
|
|
131
|
-
|
|
131
|
+
blur(index);
|
|
132
132
|
};
|
|
133
133
|
return /* @__PURE__ */ jsxs(
|
|
134
134
|
TargetContext.Provider,
|
|
@@ -151,11 +151,6 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
151
151
|
if (_.some(insideMemory, (i) => i === index)) return;
|
|
152
152
|
insideMemory.push(index);
|
|
153
153
|
},
|
|
154
|
-
onClick: () => {
|
|
155
|
-
elementFocusable(target, index).focus();
|
|
156
|
-
if (_.some(insideMemory, (i) => i === index)) return;
|
|
157
|
-
insideMemory.push(index);
|
|
158
|
-
},
|
|
159
154
|
onMouseLeave: () => {
|
|
160
155
|
insideMemory.splice(_.findIndex(insideMemory, (i) => i === index), 1);
|
|
161
156
|
},
|