We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.2.39
https://sfc.vuejs.org/#eNp1UstuwjAQ/JWtLwEJYvWKAupDlfoF7aHuISQbCPJLtpMeovx71wklhIqbd3ZmvK+OPVubtg2yDct84WobwGNo7E7oWlnjAnTgsIIeKmcUJERNhBa6MNoHUP4A25hfJO8opYFP42T5kCwnSh6C80TqhAYw+kU2bgOLJWx3EAlGYirNYZFE3jkf5f3kIGsfUOPksr/nMTEj5WLDObwahX5sIQfrjP0zb3NZl3nAtxZ1oA+SQRlVVaOLUBt9LgoWGCnLsYTZt7PPrmQfM+/7+htmsoKROjhmfFwLLYSCgMpKIlIEkB0fd103LKHvM07RgNbaNtTYel/rcivYsADBCFCmREkICSh+imVTNLYXga/ZML6H3KyywcVoSlwmLRh9mvFLXWzFxrtZq9ymJ280XdbQsjgnSLIZhxAxuqcYC3YMwfoN574q4j2efGrcgdMrdY0OtcIUvVrvnfnx6MhYsNWVByewRbd2qEt0SO3c97yh/vONtjT4nvW/u9cXqg==
Add a static v-on followed by a dynamic v-on:
<script setup> defineProps(['validateEvent']) </script> <template> <input @blur="onBlur" @[validateEvent]="onValidate" > </template>
onBlur is called even if validateEvent === 'blur'
onBlur
validateEvent === 'blur'
onBlur is not called
No response
The text was updated successfully, but these errors were encountered:
The compiler should probably generate
_withDirectives(_createElementVNode("input", _mergeProps(attrs, { "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((msg).value = $event)), onBlur: onBlur, }, { [_toHandlerKey(validateEvent)]: onValidateEvent }, _toHandlers(listeners, true)), null, 16 /* FULL_PROPS */), [ [_vModelDynamic, msg.value] ])
instead of:
_withDirectives(_createElementVNode("input", _mergeProps(attrs, { "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((msg).value = $event)), onBlur: onBlur, [_toHandlerKey(validateEvent)]: onValidateEvent }, _toHandlers(listeners, true)), null, 16 /* FULL_PROPS */), [ [_vModelDynamic, msg.value] ])
Sorry, something went wrong.
fix(compilre-core): dynamic v-on and static v-on should be merged (#6747
f9d43b9
) fix #6742
fix(compilre-core): dynamic v-on and static v-on should be merged (vu…
76c6039
…ejs#6747) fix vuejs#6742
Successfully merging a pull request may close this issue.
Vue version
3.2.39
Link to minimal reproduction
https://sfc.vuejs.org/#eNp1UstuwjAQ/JWtLwEJYvWKAupDlfoF7aHuISQbCPJLtpMeovx71wklhIqbd3ZmvK+OPVubtg2yDct84WobwGNo7E7oWlnjAnTgsIIeKmcUJERNhBa6MNoHUP4A25hfJO8opYFP42T5kCwnSh6C80TqhAYw+kU2bgOLJWx3EAlGYirNYZFE3jkf5f3kIGsfUOPksr/nMTEj5WLDObwahX5sIQfrjP0zb3NZl3nAtxZ1oA+SQRlVVaOLUBt9LgoWGCnLsYTZt7PPrmQfM+/7+htmsoKROjhmfFwLLYSCgMpKIlIEkB0fd103LKHvM07RgNbaNtTYel/rcivYsADBCFCmREkICSh+imVTNLYXga/ZML6H3KyywcVoSlwmLRh9mvFLXWzFxrtZq9ymJ280XdbQsjgnSLIZhxAxuqcYC3YMwfoN574q4j2efGrcgdMrdY0OtcIUvVrvnfnx6MhYsNWVByewRbd2qEt0SO3c97yh/vONtjT4nvW/u9cXqg==
Steps to reproduce
Add a static v-on followed by a dynamic v-on:
What is expected?
onBlur
is called even ifvalidateEvent === 'blur'
What is actually happening?
onBlur
is not calledSystem Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: