fix(editor): reativar edição ao atribuir responsável

- Atualiza RichTextEditor para refletir mudanças de disabled (setEditable)
- Corrige bug onde editor permanecia travado até F5 após atribuição
This commit is contained in:
codex-bot 2025-10-20 15:06:30 -03:00
parent 5535ba81e6
commit 7ed7775c05

View file

@ -137,6 +137,12 @@ export function RichTextEditor({
}
}, [value, editor])
// Reflect disabled prop changes after initialization
useEffect(() => {
if (!editor) return
editor.setEditable(!disabled)
}, [disabled, editor])
if (!editor) return null
return (