Range picker: Exception when letter is entered
See original GitHub issueDescribe the bug
If you enter a letter into the range picker and click outside the range picker, an exception occurs.
Steps to reproduce (please include code)
- Go to: https://antblazor.com/en-US/components/datepicker
- Enter any letter into the range picker component
- Click somewhere outside the range picker
Exceptions (if any)
The following log message appears in the browser:
Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Arg_NullReferenceException
System.NullReferenceException: Arg_NullReferenceException
at AntDesign.RangePicker`1.<OnBlur>d__18[[System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]][], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task , ComponentState )
Further technical details
- AntDesign Nuget Package version: 0.10.3.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
error handling - Python excepting input only if in range
One thing I have noticed is when I run the program CTL+C will not break me out of the loop and raises the...
Read more >Validating Input | Web Accessibility Initiative (WAI)
Depending on your web browser, the “Range” input field will be displayed as a slider control to help users provide input more easily....
Read more >Handling Errors: Try-Catch - book "Programming Basics with C#"
If we catch an exception when executing the try block, we write a message for invalid input number (and the loop is repeated...
Read more >Control flow and error handling - JavaScript - MDN Web Docs
Exception handling statements ... You can throw exceptions using the throw statement and handle them using the try...catch statements. throw ...
Read more >Types of Exception in Java with Examples
Below is the list of important built-in exceptions in Java. ArithmeticException: It is thrown when an exceptional condition has occurred in an ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@boehml Thanks for reminding. We will take a look into it.
Hi @danielpalme @Gabsch ,this issue have been fixed in https://github.com/ant-design-blazor/ant-design-blazor/pull/2531