@thecb/components 6.0.0-beta.16 → 6.0.0-beta.17
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.esm.js
CHANGED
|
@@ -19400,7 +19400,7 @@ var fallbackValues$e = {
|
|
|
19400
19400
|
var IconWrapper = styled.div.withConfig({
|
|
19401
19401
|
displayName: "Dropdown__IconWrapper",
|
|
19402
19402
|
componentId: "sc-pn6m0h-0"
|
|
19403
|
-
})(["position:absolute;display:flex;flex-direction:column;justify-content:center;transition:transform 0.3s ease;", "
|
|
19403
|
+
})(["position:absolute;display:flex;flex-direction:column;justify-content:center;transition:transform 0.3s ease;", ";top:20px;right:12px;"], function (_ref) {
|
|
19404
19404
|
var open = _ref.open;
|
|
19405
19405
|
return open ? "transform: rotate(-180deg)" : "";
|
|
19406
19406
|
});
|
|
@@ -19521,7 +19521,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
19521
19521
|
var onKeyDown = function onKeyDown(e) {
|
|
19522
19522
|
var _optionRefs$current$l, _optionRefs$current;
|
|
19523
19523
|
|
|
19524
|
-
console.log("current input value", inputValue);
|
|
19524
|
+
console.log("current input value top of keyDown", inputValue);
|
|
19525
19525
|
var key = e.key,
|
|
19526
19526
|
keyCode = e.keyCode;
|
|
19527
19527
|
var focus = document.activeElement;
|
|
@@ -19599,6 +19599,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
19599
19599
|
|
|
19600
19600
|
if (keyCode > 64 && keyCode < 91 || keyCode == 32 || keyCode == 189) {
|
|
19601
19601
|
e.preventDefault();
|
|
19602
|
+
console.log("current input value inside keydown if", inputValue);
|
|
19602
19603
|
setInputValue(inputValue + key);
|
|
19603
19604
|
}
|
|
19604
19605
|
};
|
|
@@ -19677,7 +19678,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
19677
19678
|
}
|
|
19678
19679
|
},
|
|
19679
19680
|
onChange: function onChange(e) {
|
|
19680
|
-
console.log("current input value", inputValue);
|
|
19681
|
+
console.log("current input value onChange", inputValue);
|
|
19681
19682
|
console.log("input change event", e.target);
|
|
19682
19683
|
console.log("input change event value", e.target.value);
|
|
19683
19684
|
setInputValue(e.target.value);
|
|
@@ -19721,6 +19722,10 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
19721
19722
|
} : function () {
|
|
19722
19723
|
setSelectedRef(optionRefs.current[i]);
|
|
19723
19724
|
onSelect(choice.value);
|
|
19725
|
+
|
|
19726
|
+
if (isOpen) {
|
|
19727
|
+
_onClick();
|
|
19728
|
+
}
|
|
19724
19729
|
},
|
|
19725
19730
|
selected: choice.value === value,
|
|
19726
19731
|
"aria-selected": choice.value === value,
|