Jason Beggs 1 tahun lalu
induk
melakukan
5d39a077c7

+ 1 - 0
packages/ui/src/combobox.js

@@ -247,6 +247,7 @@ function handleRoot(el, Alpine) {
                     if (typeof by === 'string') {
                         let property = by
                         by = (a, b) => {
+                            // Handle null values
                             if ((! a || typeof a !== 'object') || (! b || typeof b !== 'object')) {
                                 return Alpine.raw(a) === Alpine.raw(b)
                             }

+ 1 - 1
tests/cypress/integration/plugins/ui/combobox.spec.js

@@ -1461,7 +1461,7 @@ test('active element logic when opening a combobox',
     }
 )
 
-test.only('can remove an option without other options getting removed',
+test('can remove an option without other options getting removed',
     [html`<div
         x-data="{
             query: '',