Skip to content

feat(Popover): add programmatic close functionality to popover root#1956

Merged
zernonia merged 1 commit intounovue:v2from
JosephAnson:feat/popover-root
Jul 14, 2025
Merged

feat(Popover): add programmatic close functionality to popover root#1956
zernonia merged 1 commit intounovue:v2from
JosephAnson:feat/popover-root

Conversation

@JosephAnson
Copy link
Copy Markdown
Contributor

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Implemented programmatic close method for PopoverRoot component.

New Feature:

  • Programmatic close method - Popover now exposes a close method through the #default scoped slot, allowing popovers to be closed from within their content without requiring external ref management.

Documentation Updates:

  • Shows how to eliminate the need for manual v-model:open ref management.

Benefits:

  • No need to create and manage boolean refs for modal state
  • Reduces boilerplate code and cognitive load

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented May 28, 2025

Open in StackBlitz

npm i https://pkg.pr.new/reka-ui@1956

commit: 7c7cdaa

@zernonia zernonia merged commit 3a3990b into unovue:v2 Jul 14, 2025
5 checks passed
@JosephAnson JosephAnson deleted the feat/popover-root branch July 15, 2025 08:33
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

Successfully merging this pull request may close these issues.

2 participants