diff --git a/package-lock.json b/package-lock.json index 25726709f..bdf6b1da9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.22.3", + "version": "1.22.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.22.3", + "version": "1.22.4", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index f6eab2967..fac8b2739 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.22.3", + "version": "1.22.4", "description": "Supporting common component library", "type": "module", "main": "dist/index.js", diff --git a/src/Common/Drawer/Drawer.tsx b/src/Common/Drawer/Drawer.tsx index ca496f290..1ce2fb110 100644 --- a/src/Common/Drawer/Drawer.tsx +++ b/src/Common/Drawer/Drawer.tsx @@ -19,7 +19,7 @@ import { VisibleModal } from '../Modals/VisibleModal' import './Drawer.scss' import { DTFocusTrapType } from '@Shared/Components/DTFocusTrap' -export interface DrawerProps extends Pick { +export interface DrawerProps extends Pick { position: 'left' | 'right' | 'bottom' | 'top' children?: any backdrop?: boolean @@ -45,6 +45,7 @@ export const Drawer = ({ onClose, disableTransition, initialFocus = undefined, + avoidFocusTrap = false, }: DrawerProps) => { const drawerRef = useRef(null) useEffect(() => { @@ -69,6 +70,7 @@ export const Drawer = ({ onEscape={onEscape} close={onClose} initialFocus={initialFocus} + avoidFocusTrap={avoidFocusTrap} >