-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
fix(custom-element): ensure exposed methods are accessible from custom elements by making them enumerable #13634
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe change updates the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Component
participant ExposedObject
User->>Component: Define expose option with methods
Component->>ExposedObject: Define properties with enumerable: true
User->>Component: Access method via custom element
Component->>ExposedObject: Method is enumerable and accessible
Assessment against linked issues
Poem
Suggested labels
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Size ReportBundles
Usages
|
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-sfc
@vue/compiler-ssr
@vue/reactivity
@vue/runtime-core
@vue/runtime-dom
@vue/server-renderer
@vue/shared
vue
@vue/compat
commit: |
LGTM. |
Of course, I’ll add one right away. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/runtime-dom/__tests__/customElement.spec.ts
(1 hunks)
🧰 Additional context used
🪛 GitHub Actions: ci
packages/runtime-dom/__tests__/customElement.spec.ts
[error] 1-1: Vitest unit test failure: 'defineCustomElement > expose > expose attributes and callback' test failed with NotSupportedError: This name has already been registered in the registry.
close #13632
Summary by CodeRabbit