We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f4d2ac commit 3ec7dd8Copy full SHA for 3ec7dd8
reflex/constants/compiler.py
@@ -136,14 +136,6 @@ class Hooks(SimpleNamespace):
136
"""Common sets of hook declarations."""
137
138
EVENTS = f"const [{CompileVars.ADD_EVENTS}, {CompileVars.CONNECT_ERROR}] = useContext(EventLoopContext);"
139
- AUTOFOCUS = """
140
- // Set focus to the specified element.
141
- const focusRef = useRef(null)
142
- useEffect(() => {
143
- if (focusRef.current) {
144
- focusRef.current.focus();
145
- }
146
- })"""
147
148
class HookPosition(enum.Enum):
149
"""The position of the hook in the component."""
0 commit comments