@@ -352,7 +352,7 @@ describe('Combobox with Listbox Pattern', () => {
352352 it ( 'should not expand when disabled' , ( ) => {
353353 const { combobox, inputEl} = getPatterns ( { disabled : true } ) ;
354354 expect ( combobox . expanded ( ) ) . toBe ( false ) ;
355- combobox . onPointerup ( clickInput ( inputEl ) ) ;
355+ combobox . onClick ( clickInput ( inputEl ) ) ;
356356 expect ( combobox . expanded ( ) ) . toBe ( false ) ;
357357 } ) ;
358358 } ) ;
@@ -376,7 +376,7 @@ describe('Combobox with Listbox Pattern', () => {
376376 } ) ;
377377
378378 it ( 'should select and commit on click' , ( ) => {
379- combobox . onPointerup ( clickOption ( listbox . inputs . items ( ) , 0 ) ) ;
379+ combobox . onClick ( clickOption ( listbox . inputs . items ( ) , 0 ) ) ;
380380 expect ( listbox . getSelectedItems ( ) [ 0 ] ) . toBe ( listbox . inputs . items ( ) [ 0 ] ) ;
381381 expect ( listbox . inputs . values ( ) ) . toEqual ( [ 'Apple' ] ) ;
382382 expect ( inputEl . value ) . toBe ( 'Apple' ) ;
@@ -437,7 +437,7 @@ describe('Combobox with Listbox Pattern', () => {
437437 } ) ;
438438
439439 it ( 'should select and commit on click' , ( ) => {
440- combobox . onPointerup ( clickOption ( listbox . inputs . items ( ) , 3 ) ) ;
440+ combobox . onClick ( clickOption ( listbox . inputs . items ( ) , 3 ) ) ;
441441 expect ( listbox . getSelectedItems ( ) [ 0 ] ) . toBe ( listbox . inputs . items ( ) [ 3 ] ) ;
442442 expect ( listbox . inputs . values ( ) ) . toEqual ( [ 'Blackberry' ] ) ;
443443 expect ( inputEl . value ) . toBe ( 'Blackberry' ) ;
@@ -498,7 +498,7 @@ describe('Combobox with Listbox Pattern', () => {
498498 } ) ;
499499
500500 it ( 'should select and commit on click' , ( ) => {
501- combobox . onPointerup ( clickOption ( listbox . inputs . items ( ) , 3 ) ) ;
501+ combobox . onClick ( clickOption ( listbox . inputs . items ( ) , 3 ) ) ;
502502 expect ( listbox . getSelectedItems ( ) [ 0 ] ) . toBe ( listbox . inputs . items ( ) [ 3 ] ) ;
503503 expect ( listbox . inputs . values ( ) ) . toEqual ( [ 'Blackberry' ] ) ;
504504 expect ( inputEl . value ) . toBe ( 'Blackberry' ) ;
@@ -585,7 +585,7 @@ describe('Combobox with Listbox Pattern', () => {
585585 describe ( 'with single-select' , ( ) => {
586586 it ( 'should select and close on selection' , ( ) => {
587587 const { combobox, listbox, inputEl} = getPatterns ( { readonly : true } ) ;
588- combobox . onPointerup ( clickOption ( listbox . inputs . items ( ) , 2 ) ) ;
588+ combobox . onClick ( clickOption ( listbox . inputs . items ( ) , 2 ) ) ;
589589 expect ( listbox . getSelectedItems ( ) [ 0 ] ) . toBe ( listbox . inputs . items ( ) [ 2 ] ) ;
590590 expect ( listbox . inputs . values ( ) ) . toEqual ( [ 'Banana' ] ) ;
591591 expect ( inputEl . value ) . toBe ( 'Banana' ) ;
@@ -606,8 +606,8 @@ describe('Combobox with Listbox Pattern', () => {
606606 const { combobox, listbox, inputEl} = getPatterns ( { readonly : true } ) ;
607607 ( listbox . inputs . multi as WritableSignal < boolean > ) . set ( true ) ;
608608
609- combobox . onPointerup ( clickOption ( listbox . inputs . items ( ) , 1 ) ) ;
610- combobox . onPointerup ( clickOption ( listbox . inputs . items ( ) , 2 ) ) ;
609+ combobox . onClick ( clickOption ( listbox . inputs . items ( ) , 1 ) ) ;
610+ combobox . onClick ( clickOption ( listbox . inputs . items ( ) , 2 ) ) ;
611611
612612 expect ( listbox . inputs . values ( ) ) . toEqual ( [ 'Apricot' , 'Banana' ] ) ;
613613 expect ( inputEl . value ) . toBe ( 'Apricot, Banana' ) ;
@@ -741,7 +741,7 @@ describe('Combobox with Tree Pattern', () => {
741741 } ) ;
742742
743743 it ( 'should select and commit on click' , ( ) => {
744- combobox . onPointerup ( clickTreeItem ( tree . inputs . allItems ( ) , 0 ) ) ;
744+ combobox . onClick ( clickTreeItem ( tree . inputs . allItems ( ) , 0 ) ) ;
745745 expect ( tree . inputs . values ( ) ) . toEqual ( [ 'Fruit' ] ) ;
746746 expect ( inputEl . value ) . toBe ( 'Fruit' ) ;
747747 } ) ;
@@ -755,7 +755,7 @@ describe('Combobox with Tree Pattern', () => {
755755 } ) ;
756756
757757 it ( 'should select on focusout if the input text exactly matches an item' , ( ) => {
758- combobox . onPointerup ( clickInput ( inputEl ) ) ;
758+ combobox . onClick ( clickInput ( inputEl ) ) ;
759759 type ( 'Apple' ) ;
760760 combobox . onFocusOut ( new FocusEvent ( 'focusout' ) ) ;
761761 expect ( tree . inputs . values ( ) ) . toEqual ( [ 'Apple' ] ) ;
@@ -801,7 +801,7 @@ describe('Combobox with Tree Pattern', () => {
801801 } ) ;
802802
803803 it ( 'should select and commit on click' , ( ) => {
804- combobox . onPointerup ( clickTreeItem ( tree . inputs . allItems ( ) , 2 ) ) ;
804+ combobox . onClick ( clickTreeItem ( tree . inputs . allItems ( ) , 2 ) ) ;
805805 expect ( tree . getSelectedItems ( ) [ 0 ] ) . toBe ( tree . inputs . allItems ( ) [ 2 ] ) ;
806806 expect ( tree . inputs . values ( ) ) . toEqual ( [ 'Banana' ] ) ;
807807 expect ( inputEl . value ) . toBe ( 'Banana' ) ;
@@ -858,7 +858,7 @@ describe('Combobox with Tree Pattern', () => {
858858 } ) ;
859859
860860 it ( 'should select and commit on click' , ( ) => {
861- combobox . onPointerup ( clickTreeItem ( tree . inputs . allItems ( ) , 2 ) ) ;
861+ combobox . onClick ( clickTreeItem ( tree . inputs . allItems ( ) , 2 ) ) ;
862862 expect ( tree . getSelectedItems ( ) [ 0 ] ) . toBe ( tree . inputs . allItems ( ) [ 2 ] ) ;
863863 expect ( tree . inputs . values ( ) ) . toEqual ( [ 'Banana' ] ) ;
864864 expect ( inputEl . value ) . toBe ( 'Banana' ) ;
@@ -928,9 +928,9 @@ describe('Combobox with Tree Pattern', () => {
928928 describe ( 'Readonly mode' , ( ) => {
929929 it ( 'should select and close on selection' , ( ) => {
930930 const { combobox, tree, inputEl} = getPatterns ( { readonly : true } ) ;
931- combobox . onPointerup ( clickInput ( inputEl ) ) ;
931+ combobox . onClick ( clickInput ( inputEl ) ) ;
932932 expect ( combobox . expanded ( ) ) . toBe ( true ) ;
933- combobox . onPointerup ( clickTreeItem ( tree . inputs . allItems ( ) , 0 ) ) ;
933+ combobox . onClick ( clickTreeItem ( tree . inputs . allItems ( ) , 0 ) ) ;
934934 expect ( tree . inputs . values ( ) ) . toEqual ( [ 'Fruit' ] ) ;
935935 expect ( inputEl . value ) . toBe ( 'Fruit' ) ;
936936 expect ( combobox . expanded ( ) ) . toBe ( false ) ;
0 commit comments