@gustavo-valsechi/client 1.4.138 → 1.4.140
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.
|
@@ -74,12 +74,12 @@ function InputSelect(props) {
|
|
|
74
74
|
return () => target.remove(inputRef);
|
|
75
75
|
}, [containerRef, inputRef]);
|
|
76
76
|
const onBlur = (event) => {
|
|
77
|
-
setFocus(false);
|
|
78
77
|
setFilter("");
|
|
78
|
+
setTimeout(() => setFocus(false), 1);
|
|
79
79
|
if (register.onBlur) register.onBlur(event);
|
|
80
80
|
};
|
|
81
81
|
const onFocus = (event) => {
|
|
82
|
-
setFocus(true);
|
|
82
|
+
setTimeout(() => setFocus(true), 1);
|
|
83
83
|
if (register.onFocus) register.onFocus(event);
|
|
84
84
|
};
|
|
85
85
|
const onChange = (event) => {
|
|
@@ -41,12 +41,12 @@ function InputSelect(props) {
|
|
|
41
41
|
return () => target.remove(inputRef);
|
|
42
42
|
}, [containerRef, inputRef]);
|
|
43
43
|
const onBlur = (event) => {
|
|
44
|
-
setFocus(false);
|
|
45
44
|
setFilter("");
|
|
45
|
+
setTimeout(() => setFocus(false), 1);
|
|
46
46
|
if (register.onBlur) register.onBlur(event);
|
|
47
47
|
};
|
|
48
48
|
const onFocus = (event) => {
|
|
49
|
-
setFocus(true);
|
|
49
|
+
setTimeout(() => setFocus(true), 1);
|
|
50
50
|
if (register.onFocus) register.onFocus(event);
|
|
51
51
|
};
|
|
52
52
|
const onChange = (event) => {
|
|
@@ -116,7 +116,6 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
116
116
|
const focusable = elementFocusable(target, index);
|
|
117
117
|
const targetElement = containerRef.current[index];
|
|
118
118
|
element.addEventListener("click", () => {
|
|
119
|
-
console.log("click", insideMemory);
|
|
120
119
|
const styles = window.getComputedStyle(targetElement);
|
|
121
120
|
if (styles.opacity === "1") {
|
|
122
121
|
blur(index);
|
|
@@ -131,7 +130,6 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
131
130
|
open(target, index);
|
|
132
131
|
});
|
|
133
132
|
focusable.addEventListener("blur", () => {
|
|
134
|
-
console.log("blur", insideMemory);
|
|
135
133
|
if (import_lodash.default.some(insideMemory, (i) => i === index)) return;
|
|
136
134
|
close(index);
|
|
137
135
|
});
|
|
@@ -82,7 +82,6 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
82
82
|
const focusable = elementFocusable(target, index);
|
|
83
83
|
const targetElement = containerRef.current[index];
|
|
84
84
|
element.addEventListener("click", () => {
|
|
85
|
-
console.log("click", insideMemory);
|
|
86
85
|
const styles = window.getComputedStyle(targetElement);
|
|
87
86
|
if (styles.opacity === "1") {
|
|
88
87
|
blur(index);
|
|
@@ -97,7 +96,6 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
97
96
|
open(target, index);
|
|
98
97
|
});
|
|
99
98
|
focusable.addEventListener("blur", () => {
|
|
100
|
-
console.log("blur", insideMemory);
|
|
101
99
|
if (_.some(insideMemory, (i) => i === index)) return;
|
|
102
100
|
close(index);
|
|
103
101
|
});
|