fix(no-deprecated-slot-attribute): no fix for dynamic components by privatenumber · Pull Request #2530 · vuejs/eslint-plugin-vue (original) (raw)

Warning: I made this PR on top of #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: