Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collapse hover open? #19099

Closed
1 task
roeljohn opened this issue Oct 5, 2019 · 1 comment
Closed
1 task

Collapse hover open? #19099

roeljohn opened this issue Oct 5, 2019 · 1 comment
Assignees

Comments

@roeljohn
Copy link

roeljohn commented Oct 5, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Drag and Drop feature

What does the proposed API look like?

I'm trying to implement react beautiful drag and drop in collapse. But my boss trying to implement if I drag the item the collapse should open. Is there a way I can implement it? Thanks.

@afc163
Copy link
Member

afc163 commented Oct 5, 2019

const [activeKey, setActiveKey] = useState('');



  <Collapse activeKey={activeKey} onChange={callback}>
    <Panel header={<div onMouseEnter={() => setActiveKey('1')}>This is panel header 1</div>} key="1">
      <p>{text}</p>
    </Panel>
    <Panel header="This is panel header 2" key="2">
      <p>{text}</p>
    </Panel>
    <Panel header="This is panel header 3" key="3" disabled>
      <p>{text}</p>
    </Panel>
  </Collapse>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants