Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

benjamincanac
Copy link
Member

@benjamincanac benjamincanac commented Sep 30, 2025

πŸ”— 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

The goal here is to allow to set :portal="false" on UApp to disable portals globally.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@github-actions github-actions bot added the v4 #4488 label Sep 30, 2025
@benjamincanac
Copy link
Member Author

@menthol Would love your review on this since you implemented it 😊

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 30, 2025

npm i https://pkg.pr.new/@nuxt/ui@5111

commit: f6faf91

Copy link
Contributor

@menthol menthol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


const disabled = computed(() => typeof portal.value === 'boolean' ? !portal.value : false)

provide(portalTargetInjectionKey, computed(() => to.value))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@menthol just wondering before merging, why was there a provide in here? πŸ€”

Copy link
Contributor

@menthol menthol Sep 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first implementation used usePortal() to fire the provide, but I forgot to remove it from usePortal since we use the symbol directly in App.vue.

@benjamincanac benjamincanac merged commit 7659fa1 into v4 Sep 30, 2025
15 checks passed
@benjamincanac benjamincanac deleted the fix/app-portal branch September 30, 2025 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants