Skip to content

Commit

Permalink
Enhancement: Disable tools while code editor mode is enable (#24923)
Browse files Browse the repository at this point in the history
* Enhancement: Disable tools while code editor mode is enable

* Fix: Disable Tools dropdown button while code editor is open

* Fix: Disable Tools dropdown button while code editor is open

* Inverted condition to disable tools dropdown in code editor mode
  • Loading branch information
kishanjasani authored Aug 31, 2020
1 parent 26be8c2 commit ab0d01b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ function HeaderToolbar() {
'Generic label for block inserter button'
) }
/>
{ isLargeViewport && <ToolbarItem as={ ToolSelector } /> }
{ isLargeViewport && (
<ToolbarItem
as={ ToolSelector }
disabled={ isTextModeEnabled }
/>
) }
<ToolbarItem as={ EditorHistoryUndo } />
<ToolbarItem as={ EditorHistoryRedo } />
<ToolbarItem
Expand Down

0 comments on commit ab0d01b

Please sign in to comment.