File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/cdk-experimental/ui-patterns/behaviors/event-manager Expand file tree Collapse file tree 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>
3838 * propagation and prevents default on all events it handles.
3939 */
4040export 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 ,
4444 } ;
4545
4646 /**
@@ -63,7 +63,7 @@ export class MouseEventManager<T extends MouseEvent> extends EventManager<T> {
6363 on ( handler : EventHandler < T > ) : this;
6464
6565 on ( ...args : any [ ] ) {
66- const { button, handler, modifiers} = this . normalizeHandlerOptions ( ...args ) ;
66+ const { button, handler, modifiers} = this . _normalizeInputs ( ...args ) ;
6767
6868 this . configs . push ( {
6969 handler,
@@ -73,7 +73,7 @@ export class MouseEventManager<T extends MouseEvent> extends EventManager<T> {
7373 return this ;
7474 }
7575
76- normalizeHandlerOptions ( ...args : any [ ] ) {
76+ private _normalizeInputs ( ...args : any [ ] ) {
7777 if ( args . length === 3 ) {
7878 return {
7979 button : args [ 0 ] as MouseButton ,
You can’t perform that action at this time.
0 commit comments