Radzen Blazor Autocomplete Issue

Hello, Im new with Radzen components but i try to make the autocomplete work.
I have some console error in the browser which show me to the radzen js.

Uncaught TypeError: Cannot read properties of undefined (reading 'instance')
this error show me the line 902:
currentPopup.instance = lastPopup.instance;

I have this basic code to test it. I tried to make it based on the documentation:

<RadzenAutoComplete Data="testItems"
                   TextProperty="Name"
                   ValueProperty="Id"
                   Style="width:100%">
</RadzenAutoComplete>


@code {
   [Parameter] public int? Id { get; set; }
   private List<Item> testItems = new List<Item>();

   protected override void OnInitialized()
   {
       base.OnInitialized();
       testItems = new List<Item>
       {
           new Item { Id = 1, Name = "Test Item 1" },
           new Item { Id = 2, Name = "Test Item 2" }
       };
   }
}

Your code works normally in our demos:
autocomplete

1 Like

Thank you for the check seems like the issue was on my side.. Forgot to add rendermode into the app

Hi, I am also experiencing this error. on line 902, the Radzen.Blazor.js file is not checking if 'lastPopup.instance' is not null. It looks like a check needs to be put in place for line 903 as well.

Can you post an example demonstrating the error?

the error happens to me after i click out from the field into an other. It happens with the same demo i posted earlier here.
example:
Opened the page with empty console:
**


**
Value selected but im still in the field:

After i clicked out from the field:


after i navigated to the js in console:

But the componets works as expected even with the error.

Thanks @Sandor_Gyongyosi, it will be fixed in our next update before the end of the week.