I have two pivot views below each other. When the data load the spinner shows but doesn't go away after load and I get the following error when inspecting:
Cannot read property 'querySelector' of null.
If I remove either pivot view it works fine, i.e. only if there are two pivot views.
Also, I don't add the pivot view directly, but created a component that includes the use of the pivot view, and this component is added twice with different sets of data.
Full error:
ERROR TypeError: Cannot read property 'querySelector' of null
at showHideSpinner (spinner.js:386)
at hideSpinner (spinner.js:415)
at PivotViewComponent.push../node_modules/@syncfusion/ej2-pivotview/src/pivotview/base/pivotview.js.PivotView.onContentReady (pivotview.js:743)
at Observer.push../node_modules/@syncfusion/ej2-base/src/observer.js.Observer.notify (observer.js:89)
at PivotViewComponent.push../node_modules/@syncfusion/ej2-base/src/component.js.Component.notify (component.js:189)
at Grid.dataBound (render.js:158)
at Observer.push../node_modules/@syncfusion/ej2-base/src/observer.js.Observer.notify (observer.js:89)
at Grid.push../node_modules/@syncfusion/ej2-base/src/base.js.Base.trigger (base.js:149)
at content-renderer.js:42
at util.js:44
I attach 5 screen shots showing pivot views displaying data, but spinner still spinning, as well as use of pivot table in components
Any advice much appreciated.
Attachment:
Archive_7d08407f.zip