From 4aedb5eed07b948562f2a80851cb4a3ef6b3ea79 Mon Sep 17 00:00:00 2001 From: Maksim Eltyshev Date: Wed, 21 Oct 2020 14:50:15 +0500 Subject: [PATCH] Add z-index to popup container. Closes #46 --- client/src/lib/popup/with-popup.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/lib/popup/with-popup.jsx b/client/src/lib/popup/with-popup.jsx index a03f7a06..cf5f6bfe 100755 --- a/client/src/lib/popup/with-popup.jsx +++ b/client/src/lib/popup/with-popup.jsx @@ -56,6 +56,14 @@ export default (WrappedComponent, defaultProps) => { boundariesElement: 'window', }, }, + { + name: 'zIndex', + enabled: true, + phase: 'write', + fn: ({ state }) => { + state.styles.popper.zIndex = 1899; // eslint-disable-line no-param-reassign + }, + }, ]} className={styles.wrapper} onOpen={handleOpen}