Skip to content

Commit

Permalink
Fix (table): Cancelling the table cell properties UI no longer result…
Browse files Browse the repository at this point in the history
…s with a warning in the console. Closes #6266.

Table - console warning on cancel table and table cell properties
  • Loading branch information
mlewand authored Sep 14, 2021
2 parents 0a1dd84 + a86e271 commit a312aaa
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,6 @@ export default class TableCellPropertiesView extends View {
label: t( 'Cancel' ),
icon: icons.cancel,
class: 'ck-button-cancel',
type: 'cancel',
withText: true
} );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,6 @@ export default class TablePropertiesView extends View {
label: t( 'Cancel' ),
icon: icons.cancel,
class: 'ck-button-cancel',
type: 'cancel',
withText: true
} );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ describe( 'table cell properties', () => {
expect( view.cancelButtonView.label ).to.equal( 'Cancel' );
expect( view.cancelButtonView.withText ).to.be.true;
expect( view.cancelButtonView.class ).to.equal( 'ck-button-cancel' );
expect( view.cancelButtonView.type ).to.equal( 'button' );
} );

it( 'should make the cancel button fire the #cancel event when executed', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ describe( 'table properties', () => {
expect( view.cancelButtonView.label ).to.equal( 'Cancel' );
expect( view.cancelButtonView.withText ).to.be.true;
expect( view.cancelButtonView.class ).to.equal( 'ck-button-cancel' );
expect( view.cancelButtonView.type ).to.equal( 'button' );
} );

it( 'should make the cancel button fire the #cancel event when executed', () => {
Expand Down

0 comments on commit a312aaa

Please sign in to comment.