@kne/super-select 0.1.36 → 0.1.37

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.
@@ -286,6 +286,8 @@ const SelectInput = createWithIntlProvider({
286
286
  maxLength,
287
287
  overlayClassName,
288
288
  overlayStyle,
289
+ getPopupContainer,
290
+ zIndex,
289
291
  align,
290
292
  autoAdjustOverflow,
291
293
  transitionName,
@@ -303,6 +305,11 @@ const SelectInput = createWithIntlProvider({
303
305
  valueKey,
304
306
  size
305
307
  } = props;
308
+ const mergedOverlayStyle = useMemo(() => {
309
+ return Object.assign({}, overlayStyle, zIndex != null ? {
310
+ zIndex
311
+ } : null);
312
+ }, [overlayStyle, zIndex]);
306
313
  const transformValue = value => {
307
314
  if (single) {
308
315
  return isNotEmpty(value) ? [value] : [];
@@ -478,8 +485,9 @@ const SelectInput = createWithIntlProvider({
478
485
  onOpenChange: setOpen,
479
486
  placement: placement,
480
487
  arrow: false,
488
+ getPopupContainer: getPopupContainer,
481
489
  overlayClassName: classnames(style$6['overlay'], overlayClassName),
482
- overlayStyle: overlayStyle,
490
+ overlayStyle: mergedOverlayStyle,
483
491
  align: align,
484
492
  autoAdjustOverflow: autoAdjustOverflow,
485
493
  transitionName: transitionName,