Skip to content

Commit 4e7e9a7

Browse files
committed
fixup! feat(cdk-experimental/ui-patterns): listbox ui pattern
1 parent 457b33b commit 4e7e9a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cdk-experimental/ui-patterns/behaviors/event-manager/mouse-event-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class MouseEventManager extends EventManager<MouseEvent> {
8484
): this;
8585

8686
on(...args: any[]) {
87-
const {button, handler, modifiers, options} = this.getArgs(...args);
87+
const {button, handler, modifiers, options} = this.normalizeHandlerOptions(...args);
8888

8989
// TODO: Add strict type checks again when finalizing this API.
9090

@@ -98,7 +98,7 @@ export class MouseEventManager extends EventManager<MouseEvent> {
9898
return this;
9999
}
100100

101-
getArgs(...args: any[]) {
101+
normalizeHandlerOptions(...args: any[]) {
102102
if (typeof args[0] === 'number' && typeof args[1] === 'number') {
103103
return {
104104
button: args[0],

0 commit comments

Comments
 (0)