diff options
author | bobzel <zzzman@gmail.com> | 2019-11-15 15:12:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-15 15:12:55 -0500 |
commit | 22d1e65236bae11c508d5c34ebcbddd1a552bfd8 (patch) | |
tree | b80952873761da2c2e800195d74a989f1cd89d8c /src/client/views/DocumentDecorations.tsx | |
parent | 1dd4ab8bfdacb50512d3ec9bce6945e476d9686f (diff) | |
parent | 2ab22e64e9b95e6b76566c493ae90f5951475e72 (diff) |
Merge pull request #301 from browngraphicslab/textbox_fawn_fix
Rich text editor menu
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r-- | src/client/views/DocumentDecorations.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 49921170f..890c32bcb 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -548,8 +548,8 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> } } public showTextBar = () => { - if (this.TextBar) { - TooltipTextMenu.Toolbar && Array.from(this.TextBar.childNodes).indexOf(TooltipTextMenu.Toolbar) === -1 && this.TextBar.appendChild(TooltipTextMenu.Toolbar); + if (this.TextBar && TooltipTextMenu.Toolbar && Array.from(this.TextBar.childNodes).indexOf(TooltipTextMenu.Toolbar) === -1) { + this.TextBar.appendChild(TooltipTextMenu.Toolbar); } } render() { |