mirror of https://github.com/nocodb/nocodb
Browse Source
.ant-drawer will be destroyed when closed. no active class is required.pull/4482/head
Wing-Kam Wong
2 years ago
1 changed files with 2 additions and 1 deletions
@ -1,3 +1,4 @@ |
|||||||
// refer - https://stackoverflow.com/a/11752084
|
// refer - https://stackoverflow.com/a/11752084
|
||||||
export const isMac = () => /Mac/i.test(navigator.platform) |
export const isMac = () => /Mac/i.test(navigator.platform) |
||||||
export const isDrawerOrModalExist = () => document.querySelector('.ant-modal.active, .ant-drawer.active') |
// .ant-drawer will be destroyed when closed. no active class is required.
|
||||||
|
export const isDrawerOrModalExist = () => document.querySelector('.ant-modal.active, .ant-drawer') |
||||||
|
Loading…
Reference in new issue