mirror of
https://github.com/langgenius/dify.git
synced 2026-04-08 06:00:33 -04:00
Lexical editor only uses initialConfig.editorState on mount, ignoring
subsequent value prop changes when the component is reused by React.
Adding key={activeTabId} forces React to remount editors when switching
tabs, ensuring correct content is displayed.