fix(google-maps): bind $attrs to overlay view#672
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughThe component disables automatic attribute inheritance ( Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue`:
- Line 307: The component is accidentally letting attributes fall through to the
root element while also manually forwarding them with v-bind="$attrs" on the
inner div (ref "overlay-content"), causing duplicated id/aria/class attributes;
fix this by disabling automatic attribute inheritance on the component (add
inheritAttrs: false to the component's export default options in
ScriptGoogleMapsOverlayView.vue) so that attributes only bind to the inner
element where v-bind="$attrs" is used and do not also appear on the hidden root
wrapper.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 2b85ed37-942b-433c-b9d1-03d00462f123
📒 Files selected for processing (1)
src/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue
🔗 Linked issue
📚 Description