You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
markrian
changed the title
Nullish dynamic event names with a modifier create attributes with modifier's name
Nullish dynamic event name with a modifier creates attribute with modifier's name
Mar 17, 2025
Vue version
3.5.13
Link to minimal reproduction
https://codepen.io/markrian/pen/OPJmmoW
Steps to reproduce
@[eventName].once="onEvent"
.eventName
to an empty value, likenull
,undefined
or empty string.For example:
What is expected?
The modifier name should not become an attribute on the element.
What is actually happening?
The modifier name becomes an attribute on the element, e.g.,
System Info
Any additional comments?
Vue 2.7.16 behaves as expected, i.e., does not create an attribute.
The text was updated successfully, but these errors were encountered: