nextcloud-libraries / nextcloud-libraries/nextcloud-vue
[NcActions] handle events before open and close
Nobody has claimed this yet.
- Dominant language
- Vue
- Stars
- 246
- Forks
- 99
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 103
Description
It would be useful to have, other than open and close events, also opening and closing, to be triggered just before actual opening and closing of the popover.
Use case: in Mail, NcActions is used within an element displayed on hover. When the menu is going to be closed, and the element is no longer hovered (as the user moved to the menu), the menu flies up and down the screen as it has no longer a reference anchor in the DOM. Having some hint about the imminent closure of the menu may help in setting proper display state for all involved elements.
References:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the NcActions component and reviewing how its existing open and close events are emitted. Use the EnvelopeSkeleton.vue reference to understand the hover-driven use case; done means opening and closing are available immediately before the corresponding popover transitions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100