From 1fcb52a35dd3fb6b2c9d67c6b35dceca6bb070aa Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sat, 3 Jul 2021 02:11:10 +0530 Subject: fixed datepicker bleeding through floating menu --- src/components/Form/Items/AddNewItemForm.tsx | 1 - src/styles/global.scss | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Form/Items/AddNewItemForm.tsx b/src/components/Form/Items/AddNewItemForm.tsx index d3c873f..5be2eea 100644 --- a/src/components/Form/Items/AddNewItemForm.tsx +++ b/src/components/Form/Items/AddNewItemForm.tsx @@ -57,7 +57,6 @@ const AddNewItemForm: React.FC = (props) => { setItemGSTPercentage(i.TotalGST); setCurrentItem(i) } - console.log(currentItem) // check the item name value and do stuff accordingly const setItemInfo = (itemName: string) => diff --git a/src/styles/global.scss b/src/styles/global.scss index a1b84ef..fde6aed 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -55,6 +55,7 @@ body { width: 100%; position: fixed; top: 0; left: 0; + z-index: 1; background-color: $background0; } @@ -69,6 +70,7 @@ body { top: 0; bottom: 0; left: 0; right: 0; margin: auto; + z-index: 2; background-color: $background3; box-shadow: $floatingShadow; -- cgit v1.2.3