@deque/cauldron-react 6.4.0-canary.82f43f21 → 6.4.0-canary.9defe04e
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/lib/index.js +3 -7
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2558,13 +2558,9 @@ var LoaderOverlay = React.forwardRef(function (_a, ref) {
|
|
|
2558
2558
|
}, [focusTrap, overlayRef.current]);
|
|
2559
2559
|
React.useEffect(function () {
|
|
2560
2560
|
if (!!focusOnInitialRender && overlayRef.current) {
|
|
2561
|
-
|
|
2562
|
-
var _a;
|
|
2563
|
-
return (_a = overlayRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
2564
|
-
});
|
|
2561
|
+
overlayRef.current.focus();
|
|
2565
2562
|
}
|
|
2566
|
-
|
|
2567
|
-
}, [overlayRef.current]);
|
|
2563
|
+
}, []);
|
|
2568
2564
|
var Wrapper = focusTrap ? FocusTrap__default["default"] : React__default["default"].Fragment;
|
|
2569
2565
|
var wrapperProps = focusTrap
|
|
2570
2566
|
? {
|
|
@@ -3608,7 +3604,7 @@ var Combobox = React.forwardRef(function (_a, ref) {
|
|
|
3608
3604
|
var isAutoComplete = autocomplete !== 'none';
|
|
3609
3605
|
var hasError = !!error;
|
|
3610
3606
|
var comboboxOptions = children ||
|
|
3611
|
-
options.map(function (option, index) { return (React__default["default"].createElement(ComboboxOption, { key: option.key || index, id: "".concat(id, "-option-").concat(index + 1), description: option.description }, option.label)); });
|
|
3607
|
+
options.map(function (option, index) { return (React__default["default"].createElement(ComboboxOption, { key: option.key || index, id: "".concat(id, "-option-").concat(index + 1), description: option.description, value: option.value }, option.label)); });
|
|
3612
3608
|
var triggerListboxKeyDown = React__default["default"].useCallback(function (key) {
|
|
3613
3609
|
var _a;
|
|
3614
3610
|
(_a = listboxRef.current) === null || _a === void 0 ? void 0 : _a.dispatchEvent(new KeyboardEvent('keydown', {
|
package/package.json
CHANGED