Skip to content
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

Templating: error when using a number bind as text hole #29

Tarmil opened this Issue Mar 11, 2019 · 0 comments


None yet
1 participant
Copy link

Tarmil commented Mar 11, 2019


<input type="number" bind="${MyNumber}">
The value is ${MyNumber}

This fails without an error when trying to display, and with the following stack trace when setting from hot reload:

blazor.webassembly.js:1 Uncaught (in promise) Error: System.InvalidCastException: Specified cast is not valid.
  at Microsoft.JSInterop.DotNetDispatcher.InvokeSynchronously (System.String assemblyName, System.String methodIdentifier, System.Object targetInstance, System.String argsJson) <0x250dca8 + 0x001bc> in <af36ed9192be4a95b907125ccf0c1e59>:0 
  at Microsoft.JSInterop.DotNetDispatcher.BeginInvoke (System.String callId, System.String assemblyName, System.String methodIdentifier, System.Int64 dotNetObjectId, System.String argsJson) <0x261b980 + 0x00088> in <af36ed9192be4a95b907125ccf0c1e59>:0 
    at endInvokeDotNetFromJS (blazor.webassembly.js:1)
    at Object.invokeJSFromDotNet (blazor.webassembly.js:1)
    at _mono_wasm_invoke_js_marshalled (mono.js:1)
    at wasm-function[1450]:935
    at wasm-function[762]:25085
    at wasm-function[762]:23853
    at wasm-function[762]:23853
    at wasm-function[762]:23853
    at wasm-function[762]:24468
    at wasm-function[762]:24468

@Tarmil Tarmil added the bug label Mar 11, 2019

@Tarmil Tarmil self-assigned this Mar 11, 2019

Tarmil added a commit that referenced this issue Mar 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.