@norges-domstoler/dds-components 13.11.0 → 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.mjs CHANGED
@@ -3642,8 +3642,7 @@ var SelectInner = (props, ref) => {
3642
3642
  options,
3643
3643
  value,
3644
3644
  defaultValue,
3645
- // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
3646
- isDisabled: isDisabled || readOnly,
3645
+ isDisabled: !!isDisabled || readOnly,
3647
3646
  isClearable,
3648
3647
  placeholder: getPlaceholder(placeholder3, isMulti),
3649
3648
  closeMenuOnSelect: closeMenuOnSelect ? closeMenuOnSelect : isMulti ? false : true,
@@ -7555,7 +7554,11 @@ var Drawer = forwardRef43((props, ref) => {
7555
7554
  const elements = [drawerRef.current];
7556
7555
  if (triggerRef)
7557
7556
  elements.push(triggerRef.current);
7558
- useOnClickOutside4(elements, () => isOpen && onClose && onClose());
7557
+ useOnClickOutside4(elements, () => {
7558
+ if (isOpen) {
7559
+ onClose == null ? void 0 : onClose();
7560
+ }
7561
+ });
7559
7562
  const hasTransitionedIn = useMountTransition2(isOpen, 500);
7560
7563
  const containerProps = {
7561
7564
  ...getBaseHTMLProps33(uniqueId, className, htmlProps, rest),