From 81496e846a1f6171aee52c6f67c8e1ac7aef7c11 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Wed, 4 Dec 2024 11:05:10 -0800 Subject: [PATCH] Change parameter for create function --- reflex/components/radix/themes/components/context_menu.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/reflex/components/radix/themes/components/context_menu.py b/reflex/components/radix/themes/components/context_menu.py index c7776751a..f6652bb3a 100644 --- a/reflex/components/radix/themes/components/context_menu.py +++ b/reflex/components/radix/themes/components/context_menu.py @@ -7,8 +7,6 @@ from reflex.components.core.breakpoints import Responsive from reflex.event import EventHandler, no_args_event_spec, passthrough_event_spec from reflex.vars.base import LiteralVar, Var from reflex.components.component import Component -from reflex.components.radix.themes.typography.text import Text -from reflex.components.radix.themes.layout.flex import Flex from .checkbox import HighLevelCheckbox from ..base import LiteralAccentColor, RadixThemesComponent @@ -243,7 +241,6 @@ class ContextMenuCheckbox(RadixThemesComponent): tag = "ContextMenu.Checkbox" - @classmethod def create(cls, text: Var[str] = LiteralVar.create(""), **props) -> Component: """Create a checkbox with a label. @@ -254,7 +251,7 @@ class ContextMenuCheckbox(RadixThemesComponent): Returns: The checkbox component with a label. """ - return HighLevelCheckbox.create(text=text, **props) + return HighLevelCheckbox.create(cls, **props) class ContextMenu(ComponentNamespace): """Menu representing a set of actions, diplayed at the origin of a pointer right-click or long-press."""