@thecb/components 6.0.0-beta.1 → 6.0.0-beta.2
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/package.json
CHANGED
|
@@ -159,6 +159,8 @@ const Dropdown = ({
|
|
|
159
159
|
break;
|
|
160
160
|
case "Backspace" || "Delete":
|
|
161
161
|
e.preventDefault();
|
|
162
|
+
console.log("input value is", inputValue);
|
|
163
|
+
console.log("new input value will be", inputValue.slice(0, -1));
|
|
162
164
|
setInputValue(inputValue.slice(0, -1));
|
|
163
165
|
break;
|
|
164
166
|
}
|
|
@@ -169,6 +171,11 @@ const Dropdown = ({
|
|
|
169
171
|
};
|
|
170
172
|
|
|
171
173
|
useEffect(() => {
|
|
174
|
+
console.log(
|
|
175
|
+
"option refs in isopen useffect",
|
|
176
|
+
optionRefs.current[0].current
|
|
177
|
+
);
|
|
178
|
+
console.log("value in isopen useffect", value);
|
|
172
179
|
if (isOpen && optionRefs.current[0].current) {
|
|
173
180
|
optionRefs.current[0].current.focus();
|
|
174
181
|
}
|