eslint-plugin-vue icon indicating copy to clipboard operation
eslint-plugin-vue copied to clipboard

fix(no-deprecated-slot-attribute): no fix for dynamic components

Open privatenumber opened this issue 6 months ago • 0 comments

Warning: I made this PR on top of https://github.com/vuejs/eslint-plugin-vue/pull/2529 but I needed to open a PR against the master branch for it to show up in this repo

The #slot syntax doesn't work when passed into a native HTML <div> element for obvious reasons.

However, the old slot="name" syntax works... Demo

This can happen (and has happened in my work project) when a dynamic component renders a div to fallback when certain conditions aren't met:

privatenumber avatar Aug 15 '24 15:08 privatenumber