File tree 4 files changed +7
-4
lines changed
4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ import {toSignal} from '@angular/core/rxjs-interop';
48
48
'[attr.aria-orientation]' : 'pattern.orientation()' ,
49
49
'[attr.aria-multiselectable]' : 'pattern.multiselectable()' ,
50
50
'[attr.aria-activedescendant]' : 'pattern.activedescendant()' ,
51
- '(focusin)' : 'pattern.onFocus()' ,
52
51
'(keydown)' : 'pattern.onKeydown($event)' ,
53
52
'(mousedown)' : 'pattern.onMousedown($event)' ,
54
53
} ,
@@ -62,7 +61,7 @@ export class CdkListbox {
62
61
63
62
/** A signal wrapper for directionality. */
64
63
protected directionality = toSignal ( this . _dir . change , {
65
- initialValue : 'ltr' ,
64
+ initialValue : this . _dir . value ,
66
65
} ) ;
67
66
68
67
/** The Option UIPatterns of the child CdkOptions. */
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export abstract class EventManager<T extends Event> {
100
100
submanager . handle ( event ) ;
101
101
}
102
102
for ( const config of this . getHandlersForKey ( event ) ) {
103
- await config . handler ( event ) ;
103
+ config . handler ( event ) ;
104
104
if ( config . stopPropagation ) {
105
105
event . stopPropagation ( ) ;
106
106
}
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export class ListTypeahead<T extends ListTypeaheadItem> {
61
61
this . timeout = setTimeout ( ( ) => {
62
62
this . query . set ( '' ) ;
63
63
this . anchorIndex . set ( null ) ;
64
- } , this . inputs . delay ( ) * 1000 ) ;
64
+ } , this . inputs . typeaheadDelay ( ) * 1000 ) ;
65
65
}
66
66
67
67
/**
Original file line number Diff line number Diff line change @@ -92,6 +92,9 @@ export class ListboxPattern {
92
92
keydown = computed ( ( ) => {
93
93
const manager = new KeyboardEventManager ( ) ;
94
94
95
+ console . log ( 'prev key:' , this . prevKey ( ) ) ;
96
+ console . log ( 'next key:' , this . nextKey ( ) ) ;
97
+
95
98
if ( ! this . followFocus ( ) ) {
96
99
manager
97
100
. on ( this . prevKey , ( ) => this . prev ( ) )
@@ -178,6 +181,7 @@ export class ListboxPattern {
178
181
179
182
/** Handles keydown events for the listbox. */
180
183
onKeydown ( event : KeyboardEvent ) {
184
+ console . log ( this . orientation ( ) ) ;
181
185
if ( ! this . disabled ( ) ) {
182
186
this . keydown ( ) . handle ( event ) ;
183
187
}
You can’t perform that action at this time.
0 commit comments