chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

submitElement front-end function doesn’t fire after enabling element persistence

Open Florian-crg opened this issue 2 weeks ago • 3 comments
trafficstars

Describe the bug After enabling persistence for custom UI elements the submitElement function no longer fires.

There’s no console error and no obvious way to debug the chainlit frontend methods.

To Reproduce Steps to reproduce the behavior: 1. Enable element persistence. 2. Create an element using submitElement with a given props. 3. Select a conversation with a restored element from persistence. 4. Click on your submit action button and nothing will happen.

Expected behavior The Chainlit functions should work in persisted elements.

Screenshots

Image

Desktop (please complete the following information):

  • Browser chrome
  • Version 142.0.7444.60

Additional context Add any other context about the problem here.

The submitElement function works still on non-persisted conversations. Only persisted conversations are not working, with no errors in any consoles.

Florian-crg avatar Nov 01 '25 22:11 Florian-crg