From 9f89d4d2bd166a189da0c6cce66ac4ebb5682ab5 Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 5 Jul 2022 11:22:02 -0400 Subject: fixed color picker so that dismissing it doesn't lose focus on active text box - allows font color to be changed --- src/client/views/nodes/button/FontIconBox.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx index 85efc67a5..798759c01 100644 --- a/src/client/views/nodes/button/FontIconBox.tsx +++ b/src/client/views/nodes/button/FontIconBox.tsx @@ -344,12 +344,13 @@ export class FontIconBox extends DocComponent() {
{this.label}
; - - const dropdownCaret =
- -
; + + // dropdown caret seems superfluous since clicking the color button does the same thing + // const dropdownCaret =
+ // + //
; setTimeout(() => this.colorPicker(curColor)); // cause an update to the color picker rendered in MainView return (
() { onClick={e => e.stopPropagation()}> {this.colorPicker(curColor)}
-
{ +
{ + e.preventDefault(); e.stopPropagation(); this.colorPickerClosed = true; })} />
} -- cgit v1.2.3-70-g09d2