diff --git a/frontend/src/app/main/ui/workspace/palette.cljs b/frontend/src/app/main/ui/workspace/palette.cljs index 74f5d6901f..b23f818515 100644 --- a/frontend/src/app/main/ui/workspace/palette.cljs +++ b/frontend/src/app/main/ui/workspace/palette.cljs @@ -24,7 +24,7 @@ [app.main.ui.workspace.color-palette :refer [color-palette*]] [app.main.ui.workspace.color-palette-ctx-menu :refer [color-palette-ctx-menu*]] [app.main.ui.workspace.text-palette :refer [text-palette*]] - [app.main.ui.workspace.text-palette-ctx-menu :refer [text-palette-ctx-menu]] + [app.main.ui.workspace.text-palette-ctx-menu :refer [text-palette-ctx-menu*]] [app.util.dom :as dom] [app.util.i18n :refer [tr]] [app.util.object :as obj] @@ -203,10 +203,10 @@ :ref container} (when text-palette? [:* - [:& text-palette-ctx-menu {:show-menu? show-menu? - :close-menu on-close-menu - :on-select-palette on-select-text-palette-menu - :selected selected-text}] + [:> text-palette-ctx-menu* {:show-menu show-menu? + :close-menu on-close-menu + :on-select-palette on-select-text-palette-menu + :selected selected-text}] [:> text-palette* {:size size :selected selected-text :width vport-width}]]) diff --git a/frontend/src/app/main/ui/workspace/text_palette_ctx_menu.cljs b/frontend/src/app/main/ui/workspace/text_palette_ctx_menu.cljs index c2767a27eb..004f50e36d 100644 --- a/frontend/src/app/main/ui/workspace/text_palette_ctx_menu.cljs +++ b/frontend/src/app/main/ui/workspace/text_palette_ctx_menu.cljs @@ -14,11 +14,11 @@ [app.util.i18n :refer [tr]] [rumext.v2 :as mf])) -(mf/defc text-palette-ctx-menu - [{:keys [show-menu? close-menu on-select-palette selected]}] +(mf/defc text-palette-ctx-menu* + [{:keys [show-menu close-menu on-select-palette selected]}] (let [typographies (mf/deref refs/workspace-file-typography) libraries (mf/deref refs/libraries)] - [:& dropdown {:show show-menu? + [:& dropdown {:show show-menu :on-close close-menu} [:ul {:class (stl/css :text-context-menu)} (for [[idx cur-library] (map-indexed vector (vals libraries))]