From c59c31d53c4e401cec77bfd160aede5dcfbe490e Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Wed, 20 Jan 2021 23:44:20 -0500
Subject: fixed text styleBrush

---
 src/client/views/nodes/formattedText/RichTextMenu.tsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'src/client/views/nodes/formattedText/RichTextMenu.tsx')

diff --git a/src/client/views/nodes/formattedText/RichTextMenu.tsx b/src/client/views/nodes/formattedText/RichTextMenu.tsx
index 07439825f..9000018f4 100644
--- a/src/client/views/nodes/formattedText/RichTextMenu.tsx
+++ b/src/client/views/nodes/formattedText/RichTextMenu.tsx
@@ -600,7 +600,7 @@ export class RichTextMenu extends AntimodeMenu<AntimodeMenuProps>   {
 
     createBrushButton() {
         const self = this;
-        function onBrushClick(e: React.PointerEvent) {
+        const onBrushClick = (e: React.MouseEvent) => {
             e.preventDefault();
             e.stopPropagation();
             self.TextView.endUndoTypingBatch();
@@ -622,8 +622,7 @@ export class RichTextMenu extends AntimodeMenu<AntimodeMenuProps>   {
         //onPointerDown={onBrushClick}
 
         const button = <Tooltip title={<div className="dash-tooltip">style brush</div>} placement="bottom">
-
-            <button className="antimodeMenu-button" style={this.brushMarks?.size > 0 ? { backgroundColor: "121212" } : {}}>
+            <button className="antimodeMenu-button" onClick={onBrushClick} style={this.brushMarks?.size > 0 ? { backgroundColor: "121212" } : {}}>
                 <FontAwesomeIcon icon="paint-roller" size="lg" style={{ transitionProperty: "transform", transitionDuration: "0.1s", transform: `rotate(${this.brushMarks?.size > 0 ? 45 : 0}deg)` }} />
             </button>
         </Tooltip>;
-- 
cgit v1.2.3-70-g09d2

