[Script Setup] Global directives collide with component's local vars #3543
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
🐞 bug
Something isn't working
scope: script-setup
scope: sfc
Version
3.0.11
Reproduction link
CodeSandbox will work as expected, as it's seemingly unable to parse the new script setup syntax:
https://codesandbox.io/s/amazing-sun-nn9zt
Steps to reproduce
What is expected?
The directive callback would be called.
What is actually happening?
The component's local variable seems to override the global directive, thus the callback never firing.
The text was updated successfully, but these errors were encountered: