@plasmicpkgs/react-aria 0.0.18 → 0.0.20
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/.tsbuildinfo +1 -1
- package/dist/contexts.d.ts +1 -1
- package/dist/react-aria.esm.js +3 -0
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +3 -0
- package/dist/react-aria.js.map +1 -1
- package/dist/registerSwitch.d.ts +1 -1
- package/package.json +8 -7
- package/skinny/contexts.d.ts +1 -1
- package/skinny/registerComboBox.cjs.js +3 -0
- package/skinny/registerComboBox.cjs.js.map +1 -1
- package/skinny/registerComboBox.esm.js +3 -0
- package/skinny/registerComboBox.esm.js.map +1 -1
- package/skinny/registerSwitch.d.ts +1 -1
package/dist/contexts.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const PlasmicPopoverContext: React.Context<{
|
|
|
7
7
|
resetClassName?: string | undefined;
|
|
8
8
|
} | undefined>;
|
|
9
9
|
export declare const PlasmicItemContext: React.Context<(import("react-aria-components").ListBoxItemProps<object> & React.RefAttributes<HTMLDivElement> & {
|
|
10
|
-
key?: import("react-
|
|
10
|
+
key?: import("react-aria").Key | undefined;
|
|
11
11
|
}) | undefined>;
|
|
12
12
|
export declare const PlasmicSectionContext: React.Context<import("./registerSection").BaseSectionProps | undefined>;
|
|
13
13
|
export declare const PlasmicHeaderContext: React.Context<(React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>) | undefined>;
|
package/dist/react-aria.esm.js
CHANGED
|
@@ -953,6 +953,9 @@ function BaseComboBox(props) {
|
|
|
953
953
|
const disabledKeys = flattenedOptions.filter((op) => op.isDisabled).map((op) => op.value);
|
|
954
954
|
const onSelectionChange = React.useCallback(
|
|
955
955
|
(key) => {
|
|
956
|
+
if (key === null) {
|
|
957
|
+
return;
|
|
958
|
+
}
|
|
956
959
|
const selectedOption = flattenedOptions == null ? void 0 : flattenedOptions.find((op) => op.value === key);
|
|
957
960
|
if (valueType === "text") {
|
|
958
961
|
if (selectedOption) {
|