@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.
package/dist/index.js CHANGED
@@ -293,6 +293,8 @@ const SelectInput = reactIntl.createWithIntlProvider({
293
293
  maxLength = props.maxLength,
294
294
  overlayClassName = props.overlayClassName,
295
295
  overlayStyle = props.overlayStyle,
296
+ getPopupContainer = props.getPopupContainer,
297
+ zIndex = props.zIndex,
296
298
  align = props.align,
297
299
  autoAdjustOverflow = props.autoAdjustOverflow,
298
300
  transitionName = props.transitionName,
@@ -309,6 +311,11 @@ const SelectInput = reactIntl.createWithIntlProvider({
309
311
  labelKey = props.labelKey,
310
312
  valueKey = props.valueKey,
311
313
  size = props.size;
314
+ const mergedOverlayStyle = React.useMemo(() => {
315
+ return Object.assign({}, overlayStyle, zIndex != null ? {
316
+ zIndex
317
+ } : null);
318
+ }, [overlayStyle, zIndex]);
312
319
  const transformValue = value => {
313
320
  if (single) {
314
321
  return isEmpty.isNotEmpty(value) ? [value] : [];
@@ -498,8 +505,9 @@ const SelectInput = reactIntl.createWithIntlProvider({
498
505
  onOpenChange: setOpen,
499
506
  placement: placement,
500
507
  arrow: false,
508
+ getPopupContainer: getPopupContainer,
501
509
  overlayClassName: classnames__default["default"](style$6['overlay'], overlayClassName),
502
- overlayStyle: overlayStyle,
510
+ overlayStyle: mergedOverlayStyle,
503
511
  align: align,
504
512
  autoAdjustOverflow: autoAdjustOverflow,
505
513
  transitionName: transitionName,