Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Make split button toggleable and update test to check it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Samsel committed Aug 9, 2019
1 parent 9e5b6a6 commit 8643cee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/highlightui.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ export default class HighlightUI extends Plugin {
// Holds last executed highlighter.
lastExecuted: startingHighlighter.model,
// Holds current highlighter to execute (might be different then last used).
commandValue: startingHighlighter.model
commandValue: startingHighlighter.model,
isToggleable: true
} );

// Dropdown button changes to selection (command.value):
Expand Down
1 change: 1 addition & 0 deletions tests/highlightui.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ describe( 'HighlightUI', () => {

expect( button ).to.have.property( 'tooltip', 'Highlight' );
expect( button ).to.have.property( 'icon', markerIcon );
expect( button ).to.have.property( 'isToggleable', true );
} );

it( 'should have proper icons in dropdown', () => {
Expand Down

0 comments on commit 8643cee

Please sign in to comment.