ComboBox not working anymore in 17.4.51 relaese

<EjsComboBox @bind-Valie=... DataSource=@... AllowCustom="true">
     <ComboBoxFieldSettings Value='...'>

now generates error:


System.NullReferenceException: Object reference not set to an instance of an object.
   at Syncfusion.EJ2.Blazor.Data.BlazorAdaptor.<>c__DisplayClass3_0`1.<PerformDataOperation>b__0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location where exception was thrown ---
   at Syncfusion.EJ2.Blazor.Data.BlazorAdaptor.PerformDataOperation[T](Object query)
   at Syncfusion.EJ2.Blazor.DataManager.ExecuteQuery[T](DataManagerRequest queries)
   at Syncfusion.EJ2.Blazor.BaseComponent.DataProcess(String dataManager, String key)


3 Replies

BC Berly Christopher Syncfusion Team February 26, 2020 10:51 AM UTC

Hi Andrey, 
  
Greetings from Syncfusion support.  
  
We have checked the reported issue and would like to inform you that the reported issue “Script error throws when the value is set as null with two-way binding variable” is already known issue in the 17.4.50 version and it has been resolved in our latest version 17.4.51. So, kindly ensure that whether you have installed latest NuGet version and refer the latest version scripts as mentioned below.  
  
[_Host.cshtml
  
<link rel='nofollow' href="https://cdn.syncfusion.com/ej2/17.4.51/fabric.css" rel="stylesheet" /> 
    <script src="https://cdn.syncfusion.com/ej2/17.4.51/dist/ej2.min.js"></script> 
    <script src="https://cdn.syncfusion.com/ej2/17.4.51/dist/ejs.interop.min.js"></script> 

  
Also, while checked the provided code example, you have defined the bind-value attribute as “bind-valie”. This will lead to replicate mentioned issue in the application. So, we suggest you to define the bind-value attribute as mentioned below. 
  
<EjsComboBox TValue="string" @bind-Value="@comboVal" PopupHeight="230px"  AllowCustom="true" Autofill=true Placeholder="Select a game" DataSource="@Games"> 
    <ComboBoxFieldSettings Text="Text" Value="ID"></ComboBoxFieldSettings> 
</EjsComboBox> 
@code { 
    public string comboVal { get; set; } = "Badminton"; 
    public class GameFields 
    { 
        public string ID { get; set; } 
        public string Text { get; set; } 
    } 
    public List<GameFields> Games = new List<GameFields>() { 
        new GameFields(){ ID= "Game1", Text= "American Football" }, 
        new GameFields(){ ID= "Game2", Text= "Badminton" }, 
        new GameFields(){ ID= "Game3", Text= "Basketball" }, 
        new GameFields(){ ID= "Game4", Text= "Cricket" }, 
        new GameFields(){ ID= "Game5", Text= "Football" }, 
        new GameFields(){ ID= "Game6", Text= "Golf" }, 
        new GameFields(){ ID= "Game7", Text= "Hockey" }, 
        new GameFields(){ ID= "Game8", Text= "Rugby"}, 
        new GameFields(){ ID= "Game9", Text= "Snooker" }, 
        new GameFields(){ ID= "Game10",Text= "Tennis"} 
        }; 
} 

  
We have prepared the sample and attached it below. 
  
Still issue persists, please revert us along with below details that will help us to check and proceed further at our end. 
·       Code example of component rendering 
·       Issue reproducing sample or modify the provided sample with reported issue 
·       Did you receive the mentioned error in browser console? 
  
Regards, 
Berly B.C 



MA Mr Andrey Voronov February 26, 2020 11:40 AM UTC

Replace List<> with  GameFields[] Games = new GameFields[] {...

to reproduce the issue


BC Berly Christopher Syncfusion Team February 27, 2020 04:50 PM UTC

Hi Andrey, 
  
Thanks for providing information. 
  
This is already known issue and this fix will be included in our upcoming patch release scheduled on 4th March 2020. You can track the status of the reported issue from the below feedback link. 
  
  
Regards, 
Berly B.C 


Loader.
Up arrow icon