-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Upgrading to 3.4 breaks ref behaviour in highcharts-vue #10012
New issue
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
Comments
Downgrading to v3.4.4 works fine. |
This was reported by a jsPlumb Toolkit licensee also, in relation to one of our demonstration apps: <jsplumb-toolkit ref="toolkitComponent"
surface-id="surfaceId"
:render-params="this.renderParams()"
:view="this.viewParams()"
:toolkit-params="this.toolkitParams()"
url="copyright.json">
</jsplumb-toolkit> The |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Vue version
3.4.5
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-k8kyr7?file=src%2FApp.vue
Steps to reproduce
What is expected?
The graph should be displayed
What is actually happening?
The app throws errors and warnings:
System Info
No response
Any additional comments?
In Vue 3.4, the ref here is in its initial state (
null
) and does not contain a ref to the container: https://github.com/highcharts/highcharts-vue/blob/master/src/component.js#L80In Vue 3.3 the ref correctly points to the
<div>
. When trying with a production build, the app still doesn't work, but a log there will eventually show the ref pointing to a<div>
. This means somehow the order of execution of things has changed between the call torender()
and the call to theonMounted()
callback.Also reported on the highchart-vue repository: highcharts/highcharts-vue#256
The text was updated successfully, but these errors were encountered: