Browse Source

fix(nc-gui): use ant-drawer-open instead

pull/4482/head
Wing-Kam Wong 2 years ago
parent
commit
e3fc9b2b00
  1. 3
      packages/nc-gui/utils/browserUtils.ts

3
packages/nc-gui/utils/browserUtils.ts

@ -1,4 +1,3 @@
// refer - https://stackoverflow.com/a/11752084
export const isMac = () => /Mac/i.test(navigator.platform)
// .ant-drawer will be destroyed when closed. no active class is required.
export const isDrawerOrModalExist = () => document.querySelector('.ant-modal.active, .ant-drawer')
export const isDrawerOrModalExist = () => document.querySelector('.ant-modal.active, .ant-drawer-open')

Loading…
Cancel
Save