RadzenAutoComplete component is throwing 'Uncaught TypeError: Cannot read properties of undefined (reading 'instance')' browser console error. #1105

Open
opened 2026-01-29 17:49:01 +00:00 by claunia · 0 comments
Owner

Originally created by @waylonsmith on GitHub (Jan 30, 2024).

Describe the bug
The following browser console error is being thrown:

Radzen.Blazor.js:896 Uncaught TypeError: Cannot read properties of undefined (reading 'instance')

To Reproduce
Steps to reproduce the behavior:

  1. Create a RadzenAutoComplete component without setting the Data property.
  2. Add a callback function to the 'keyup' event for the RadzenAutoComplete input that will inject html within the ul element of the 'popup' element.
  3. Type some values within the RadzenAutoComplete input element.
  4. Click anywhere on the document to trigger the popup element to close.
  5. The error is then thrown to the browser's console.

Expected behavior
No error is thrown when manually populating the data of the RadzenAutoComplete input popup element.

Screenshots
2024-01-29_21-50-52

Desktop:

  • OS: Windows 11 Pro
  • Browser: Edge, Chrome
  • Version: 23H2
Originally created by @waylonsmith on GitHub (Jan 30, 2024). **Describe the bug** The following browser console error is being thrown: `Radzen.Blazor.js:896 Uncaught TypeError: Cannot read properties of undefined (reading 'instance')` **To Reproduce** Steps to reproduce the behavior: 1. Create a RadzenAutoComplete component without setting the Data property. 2. Add a callback function to the 'keyup' event for the RadzenAutoComplete input that will inject html within the ul element of the 'popup' element. 3. Type some values within the RadzenAutoComplete input element. 4. Click anywhere on the document to trigger the popup element to close. 5. The error is then thrown to the browser's console. **Expected behavior** No error is thrown when manually populating the data of the RadzenAutoComplete input popup element. **Screenshots** ![2024-01-29_21-50-52](https://github.com/radzenhq/radzen-blazor/assets/1158135/76264679-3a9f-4008-895a-4f8d1b11a0df) **Desktop:** - OS: Windows 11 Pro - Browser: Edge, Chrome - Version: 23H2
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1105