@thecb/components 5.11.4 → 6.0.0-beta.0
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
|
@@ -120,7 +120,10 @@ const Dropdown = ({
|
|
|
120
120
|
const onKeyDown = e => {
|
|
121
121
|
const { key, keyCode } = e;
|
|
122
122
|
const focus = document.activeElement;
|
|
123
|
+
console.log("focus is", focus);
|
|
124
|
+
console.log("option refs are", optionRefs.current);
|
|
123
125
|
const optionEl = optionRefs.current.find(ref => ref.current === focus);
|
|
126
|
+
console.log("option el is", optionEl);
|
|
124
127
|
switch (key) {
|
|
125
128
|
case "ArrowDown":
|
|
126
129
|
e.preventDefault();
|