-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Open
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
Description
Vue version
3.5.26
Link to minimal reproduction
Steps to reproduce
Adding undefined to event handler with modifier in for loop will cause error. Minimal reproduction demo is given in link above.
There is an almost same issue before #9865, which has been fixed.
While in for loop, this issue still exists and will cause failure.
What is expected?
Like issue in #9865, vue should ignore empty event handler with modifier in for loop
What is actually happening?
sfc fails to render if adding undefined handler to event with modifier in loop
System Info
System:
OS: macOS 26.2
CPU: (10) arm64 Apple M1 Pro
Memory: 177.27 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.12.0 - /Users/alexren/.nvm/versions/node/v22.12.0/bin/node
npm: 11.0.0 - /Users/alexren/.nvm/versions/node/v22.12.0/bin/npm
pnpm: 9.15.5 - /Users/alexren/Library/pnpm/pnpm
Browsers:
Chrome: 144.0.7559.97
Edge: 129.0.2792.79
Safari: 26.2
npmPackages:
vue: ~3.5.26 => 3.5.26Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.