alpinejs / alpine

A rugged, minimal framework for composing JavaScript behavior in your markup.
https://alpinejs.dev
MIT License
28.29k stars 1.23k forks source link

Listbox compare null value bugfix #3962

Closed gdebrauwer closed 9 months ago

gdebrauwer commented 10 months ago

When there is no value selected and the by attribute is used, then an error occurs because it tries to access a property on null. This PR fixes that. I got the fix from the combobox.js file, as the issue was already fixed there.

calebporzio commented 9 months ago

Thanks!