diff --git a/packages/ckeditor5-ui/src/button/buttonview.js b/packages/ckeditor5-ui/src/button/buttonview.js index e71a41404cc..744f4a2ee9e 100644 --- a/packages/ckeditor5-ui/src/button/buttonview.js +++ b/packages/ckeditor5-ui/src/button/buttonview.js @@ -151,10 +151,6 @@ export default class ButtonView extends View { children: this.children, on: { - mousedown: bind.to( evt => { - evt.preventDefault(); - } ), - click: bind.to( evt => { // We can't make the button disabled using the disabled attribute, because it won't be focusable. // Though, shouldn't this condition be moved to the button controller? diff --git a/packages/ckeditor5-ui/tests/button/buttonview.js b/packages/ckeditor5-ui/tests/button/buttonview.js index 0b0d219e6d3..1b9db79712d 100644 --- a/packages/ckeditor5-ui/tests/button/buttonview.js +++ b/packages/ckeditor5-ui/tests/button/buttonview.js @@ -281,10 +281,10 @@ describe( 'ButtonView', () => { } ); describe( 'mousedown event', () => { - it( 'should be prevented', () => { + it( 'should not be prevented', () => { const ret = view.element.dispatchEvent( new Event( 'mousedown', { cancelable: true } ) ); - expect( ret ).to.false; + expect( ret ).to.true; } ); } );