Bug Description
Using enter_key_submit=True on rx.el.textarea throws a frontend exception when pressing Enter.
Code Example
rx.el.form(
rx.el.textarea(
placeholder="Type here...",
enter_key_submit=True,
),
on_submit=TestEventState.on_submit_event,
)
Throws:
[Reflex Frontend Exception]
ReferenceError: enterKeySubmitOnKeyDown is not defined
ReferenceError: enterKeySubmitOnKeyDown is not defined
at onKeyDown (http://localhost:3000/docs/app/routes/_index.jsx?import:640:21)
at executeDispatch (http://localhost:3000/docs/node_modules/.vite/deps/react-dom_client.js?v=955c8eb8:9141:5)
at runWithFiberInDEV (http://localhost:3000/docs/node_modules/.vite/deps/react-dom_client.js?v=955c8eb8:851:66)
at processDispatchQueue (http://localhost:3000/docs/node_modules/.vite/deps/react-dom_client.js?v=955c8eb8:9167:27)
at http://localhost:3000/docs/node_modules/.vite/deps/react-dom_client.js?v=955c8eb8:9454:5
at batchedUpdates$1 (http://localhost:3000/docs/node_modules/.vite/deps/react-dom_client.js?v=955c8eb8:2044:12)
at dispatchEventForPluginEventSystem (http://localhost:3000/docs/node_modules/.vite/deps/react-dom_client.js?v=955c8eb8:9240:4)
at dispatchEvent (http://localhost:3000/docs/node_modules/.vite/deps/react-dom_client.js?v=955c8eb8:11319:29)
at dispatchDiscreteEvent (http://localhost:3000/docs/node_modules/.vite/deps/react-dom_client.js?v=955c8eb8:11301:56)
Happening on main
Bug Description
Using
enter_key_submit=Trueonrx.el.textareathrows a frontend exception when pressing Enter.Code Example
Throws:
Happening on main