Browse Source

fix(nc-gui): remove active class for .ant-drawer

.ant-drawer will be destroyed when closed. no active class is required.
pull/4482/head
Wing-Kam Wong 2 years ago
parent
commit
09991130e8
  1. 3
      packages/nc-gui/utils/browserUtils.ts

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

@ -1,3 +1,4 @@
// refer - https://stackoverflow.com/a/11752084
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…
Cancel
Save