Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

260
Views
draft-js Error no detectado: se obtuvo un nulo inesperado o indefinido al cambiar el estilo de fuente

Solo en Mozilla Firefox cuando ingreso texto en muiRichTextEditor con estilo de fuente, por ejemplo, texto en negrita agregado después cuando ingreso texto muestra error DOMException: Node.removeChild: El nodo que se eliminará no es un elemento secundario de este nodo o cuando intento cambiar el estilo de fuente obtuve este error Error no detectado: Obtuve un nulo inesperado o indefinido. Intento todas las soluciones en Github. no funcionan;

 const defaultContent = convertToRaw(EditorState.createEmpty().getCurrentContent()); const [content, setContent] = useState(JSON.stringify(defaultContent)); const onChange = (state: EditorState) => { const currentContentState = state.getCurrentContent(); const selectionState = state.getSelection(); EditorState.push(state, Modifier.replaceText(currentContentState, selectionState, ''), 'remove-range'); if (ref && ref.current && isReply) { ref.current.focus(); } setIsEmpty(!state.getCurrentContent().hasText()); }; useEffect(() => { const comment = commentAction.comment; const contentState = convertFromHTML(comment ? comment.text : ''); const state = contentState && ContentState.createFromBlockArray(contentState.contentBlocks, contentState.entityMap); setContent(JSON.stringify(convertToRaw(state))); }, [commentAction.action, commentAction.comment]);
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!