@norges-domstoler/dds-components 13.11.1 → 13.11.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/dist/index.js CHANGED
@@ -3634,8 +3634,7 @@ var SelectInner = (props, ref) => {
3634
3634
  options,
3635
3635
  value,
3636
3636
  defaultValue,
3637
- // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
3638
- isDisabled: isDisabled || readOnly,
3637
+ isDisabled: !!isDisabled || readOnly,
3639
3638
  isClearable,
3640
3639
  placeholder: getPlaceholder(placeholder3, isMulti),
3641
3640
  closeMenuOnSelect: closeMenuOnSelect ? closeMenuOnSelect : isMulti ? false : true,
@@ -7358,7 +7357,11 @@ var Drawer = (0, import_react60.forwardRef)((props, ref) => {
7358
7357
  const elements = [drawerRef.current];
7359
7358
  if (triggerRef)
7360
7359
  elements.push(triggerRef.current);
7361
- (0, import_dds_core62.useOnClickOutside)(elements, () => isOpen && onClose && onClose());
7360
+ (0, import_dds_core62.useOnClickOutside)(elements, () => {
7361
+ if (isOpen) {
7362
+ onClose == null ? void 0 : onClose();
7363
+ }
7364
+ });
7362
7365
  const hasTransitionedIn = (0, import_dds_core62.useMountTransition)(isOpen, 500);
7363
7366
  const containerProps = {
7364
7367
  ...(0, import_dds_core62.getBaseHTMLProps)(uniqueId, className, htmlProps, rest),