stavroskasidis / BlazorContextMenu

A context menu component for Blazor !
MIT License
532 stars 58 forks source link

Uncaught (in promise) undefined #141

Closed kjsturm closed 11 months ago

kjsturm commented 1 year ago

when opening context menu, chrome devtools reports following error: Uncaught (in promise) undefined testpage:1 setInterval (async)
e.offsetLeft.e.clientWidth.window.innerWidth.e.style.left @ blazorContextMenu.min.js:1 (anonymous) @ blazorContextMenu.min.js:1 Promise.then (async)
d @ blazorContextMenu.min.js:1 c.ManualShow @ blazorContextMenu.min.js:1 (anonymous) @ blazor.server.js:1 beginInvokeJSFromDotNet @ blazor.server.js:1 _invokeClientMethod @ blazor.server.js:1 _processIncomingData @ blazor.server.js:1 Ft.connection.onreceive @ blazor.server.js:1 i.onmessage

things seem to function fine apart from the reported error.

may be a promise did not have a catch

environment: blazor server app net 7.0 invoking menu from javascript via a reference to the component object. passing clientX and clientY from javascript to c# component.

stavroskasidis commented 11 months ago

Fixed in 1.17