Im trying to return a value from a custom html component that recreates a input text with an specific pre validation. But I cant set it afterwars into the session state. Anyone nows? I tried this:
if (value && !options.includes(value)) {{
window.parent.postMessage(
{{ type: “streamlit:setSessionState”, key: “{key}”, value }},
“*”
);
}}