coreui/coreui-react

How evit close CSidebar in mobile device?

christiantigre opened this issue · 1 comments

In Mobile the CSidebar component, closes when clicking on background.
I need to keep open the CSidebar.

<CSidebar
    position="fixed"
    unfoldable={unfoldable}
    visible={sidebarShow}
    onVisibleChange={(visible) => {
      dispatch({ type: 'set', sidebarShow: visible })
    }}
  >
    <CSidebarBrand className="d-none d-md-flex">
      <CIcon className="sidebar-brand-full" icon={logoNegative} height={35} />
      <CIcon className="sidebar-brand-narrow" icon={sygnet} height={35} />
    </CSidebarBrand>
    <CSidebarNav>
      <SimpleBar>
        <AppSidebarNav items={navigation} />
      </SimpleBar>
    </CSidebarNav>
    <CSidebarToggler
      className="d-none d-lg-flex"
      onClick={() =>
        dispatch({ type: 'set', sidebarUnfoldable: !unfoldable })
      }
    />
  </CSidebar>

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions