Skip to content

Commit 9a4715c

Browse files
authored
Merge pull request #245 from dxc-technology/jsuarezgonz-autocompleteFix
[Patch] z-index added to the suggestion list to be visible in dialog box.
2 parents efc8cec + f3df3e1 commit 9a4715c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/src/input-text/InputText.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ const DxcInputText = ({
241241
/>
242242
</TextContainer>
243243

244-
<Popper
244+
<DxcSuggestions
245245
open={isOpen}
246246
anchorEl={anchorEl}
247247
anchororigin={{
@@ -285,7 +285,7 @@ const DxcInputText = ({
285285
</Paper>
286286
</React.Fragment>
287287
</SuggestionsContainer>
288-
</Popper>
288+
</DxcSuggestions>
289289
</ThemeProvider>
290290
);
291291
};
@@ -318,6 +318,10 @@ const getCursor = (interactuable, disabled) => {
318318
return "cursor:default; outline:none;";
319319
};
320320

321+
const DxcSuggestions = styled(Popper)`
322+
z-index: 1301;
323+
`;
324+
321325
const SuggestionsContainer = styled.div`
322326
width: ${(props) => calculateWidth(props.margin, props.size)};
323327
.MuiPaper-root {

0 commit comments

Comments
 (0)