htmlstreamofficial / preline

Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.
https://preline.co
Other
4.9k stars 309 forks source link

Custom Combobox Options Trigger Errors #464

Open michaelnabil230 opened 2 months ago

michaelnabil230 commented 2 months ago

Summary

When using the combobox as shown on the website, it functions correctly with the provided API. However, customizing the options to be displayed in the combobox leads to errors.

Steps to Reproduce

When using the combobox as demonstrated on the website, it works perfectly with the provided API. However, when attempting to customize the options (elements) displayed in the combobox, an error occurs: chunk-BLKX25ZG.js?v=aa93edf8:10453 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'insertBefore'). Additionally, another error appears: chunk-BLKX25ZG.js?v=aa93edf8:8704 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'emitsOptions') . Another error: Uncaught (in promise) TypeError: Cannot set properties of null (setting '__vnode')

Demo Link

https://stackblitz.com/edit/issue-combobox

Expected Behavior

No response

Actual Behavior

No response

Screenshots

No response