I just upgraded my project to the newest preview of VS2022 from the last preview and received an error in a JavaScript file that looks like it may be from Syncfusion.
Uncaught TypeError: Cannot read properties of null (reading 'offsetWidth')
at n.setActiveBorder (sf-tab-19ec1c.min.js:1)
at n.refreshActiveBorder (sf-tab-19ec1c.min.js:1)
at n.refreshActElePosition (sf-tab-19ec1c.min.js:1)
File: sf-tab-19ec1c.min.js:formatted, line: 434, code snippet:
var l = sf.base.isNullOrUndefined(o) ? this.tbItems.offsetWidth : o.offsetWidth;
0 !== l ? sf.base.setStyleAttribute(a, {
left: t.offsetLeft + "px",
right: l - (t.offsetLeft + t.offsetWidth) + "px"
}) : sf.base.setStyleAttribute(a, {
left: "auto",
right: "auto"
})
Note: I am stuck until this is resolved or have to use another Tab control (assuming this is the tab control)
Reference comment on Microsoft release notice page: https://devblogs.microsoft.com/visualstudio/visual-studio-2022-preview-4-is-now-available/comment-page-3/#comment-25860