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
NB: use a component with a transpiled render function (render._withStripped should be true). For the purpose of the minimal repro, we are setting the flag manually.
on the minimal repro open the console, click on the button and see the warning message showing up
What is expected?
no warning
What is actually happening?
it throws an improper warning
What is happening
create a component that $emit directly in an event handler like <button @click="$emit('click')">click me! </button>
The handler will be compiled as such in the createElement function
on: {
click: function($event) {
return _vm.$emit("closeModal")
}
}
returning the vm instance
3. In the isPromise call it will check for property like .then or .catch
4. the withStriped flag set to true the vm instance is proxied to throw non present properties but referenced during render on development
5. It will throw the following warning: [Vue warn]: Property or method "then" is not defined on the instance but referenced during render
The text was updated successfully, but these errors were encountered:
Version
2.6.0
Reproduction link
https://jsfiddle.net/jk8as0bz/
Steps to reproduce
NB: use a component with a transpiled render function (render._withStripped should be true). For the purpose of the minimal repro, we are setting the flag manually.
on the minimal repro open the console, click on the button and see the warning message showing up
What is expected?
no warning
What is actually happening?
it throws an improper warning
What is happening
<button @click="$emit('click')">click me! </button>
returning the vm instance
3. In the isPromise call it will check for property like
.then
or.catch
4. the withStriped flag set to true the vm instance is proxied to throw non present properties but referenced during render on development
5. It will throw the following warning:
[Vue warn]: Property or method "then" is not defined on the instance but referenced during render
The text was updated successfully, but these errors were encountered: