WebViewer Version:
Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? No
Are you using the WebViewer server? Yes
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? YES
Is your issue related to annotations? yes
Please give a brief summary of your issue:
(Think of this as an email subject)
- Using the VUE front-end framework
- Use the UI. ContextMenuPopup. Update ([]) method;
- I have no problem running my code in 8.12.1 or 10.0.0
- When I upgraded to 10.3.0, I got an error when I right-clicked twice.
- The code is as follows: const renderSlider = () => {
const div=document.getElementById(‘signatruePop’);
div.style.position = ‘relative’;
div.style.width = ‘250px’;
div.style.display=‘block’;
return div;
};
this.newSignatruePop = {
type: ‘customElement’,
render: renderSlider
};
UI.contextMenuPopup.update([
this.newSignatruePop,
]);
6. The error after F12 is TypeError: Cannot read properties of null (reading ‘style’).
7. I can’t find the dom with the id of signatruePop in the source code. There is one when I right-click it for the first time, but there is no DOM for the second time
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
- Using the VUE front-end framework
- Use the UI. ContextMenuPopup. Update ([]) method;
- I have no problem running my code in 8.12.1 or 10.0.0
- When I upgraded to 10.3.0, I got an error when I right-clicked twice.
- The code is as follows: const renderSlider = () => {
const div=document.getElementById(‘signatruePop’);
div.style.position = ‘relative’;
div.style.width = ‘250px’;
div.style.display=‘block’;
return div;
};
this.newSignatruePop = {
type: ‘customElement’,
render: renderSlider
};
UI.contextMenuPopup.update([
this.newSignatruePop,
]);
6. The error after F12 is TypeError: Cannot read properties of null (reading ‘style’).
7. I can’t find the dom with the id of signatruePop in the source code. There is one when I right-click it for the first time, but there is no DOM for the second time
Please provide a link to a minimal sample where the issue is reproducible:
- Using the VUE front-end framework
- Use the UI. ContextMenuPopup. Update ([]) method;
- I have no problem running my code in 8.12.1 or 10.0.0
- When I upgraded to 10.3.0, I got an error when I right-clicked twice.
- The code is as follows: const renderSlider = () => {
const div=document.getElementById(‘signatruePop’);
div.style.position = ‘relative’;
div.style.width = ‘250px’;
div.style.display=‘block’;
return div;
};
this.newSignatruePop = {
type: ‘customElement’,
render: renderSlider
};
UI.contextMenuPopup.update([
this.newSignatruePop,
]);
6. The error after F12 is TypeError: Cannot read properties of null (reading ‘style’).
7. I can’t find the dom with the id of signatruePop in the source code. There is one when I right-click it for the first time, but there is no DOM for the second time