designsystemet
designsystemet copied to clipboard
fix(Popover): unnecesary call of `onOpen` and missing call of `onClose`
Summary
Popover: Fix unnecesary call of onOpen and missing call of onClose
- Don't call
onOpenwhen clickingPopover.TriggerwhenPopoveris already open. - Call
onClosewhen a controlledPopoveris closed by clicking onPopover.Trigger.
Checks
- [x] I have read the contribution guidelines
- [x] I have added a changeset (run
pnpm changesetif relevant)
🦋 Changeset detected
Latest commit: 4ab3095774b4bcb696c3e128a32879812e309286
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 4 packages
| Name | Type |
|---|---|
| @digdir/designsystemet-react | Patch |
| @digdir/designsystemet | Patch |
| @digdir/designsystemet-css | Patch |
| @digdir/designsystemet-theme | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
I'll make sure to fix this before next release 😄