File tree 1 file changed +5
-5
lines changed
src/cdk-experimental/ui-patterns/behaviors/event-manager
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ export interface MouseEventHandlerConfig extends EventHandlerConfig<MouseEvent>
38
38
* propagation and prevents default on all events it handles.
39
39
*/
40
40
export class MouseEventManager < T extends MouseEvent > extends EventManager < T > {
41
- override options : EventHandlerOptions = {
42
- preventDefault : true ,
43
- stopPropagation : true ,
41
+ options : EventHandlerOptions = {
42
+ preventDefault : false ,
43
+ stopPropagation : false ,
44
44
} ;
45
45
46
46
/**
@@ -63,7 +63,7 @@ export class MouseEventManager<T extends MouseEvent> extends EventManager<T> {
63
63
on ( handler : EventHandler < T > ) : this;
64
64
65
65
on ( ...args : any [ ] ) {
66
- const { button, handler, modifiers} = this . normalizeHandlerOptions ( ...args ) ;
66
+ const { button, handler, modifiers} = this . _normalizeInputs ( ...args ) ;
67
67
68
68
this . configs . push ( {
69
69
handler,
@@ -73,7 +73,7 @@ export class MouseEventManager<T extends MouseEvent> extends EventManager<T> {
73
73
return this ;
74
74
}
75
75
76
- normalizeHandlerOptions ( ...args : any [ ] ) {
76
+ private _normalizeInputs ( ...args : any [ ] ) {
77
77
if ( args . length === 3 ) {
78
78
return {
79
79
button : args [ 0 ] as MouseButton ,
You can’t perform that action at this time.
0 commit comments