react-transcript-editor
react-transcript-editor copied to clipboard
Cannot read property 'scrollIntoView' of null - Storybook error
Describe the bug While editing the transcript while the audio was playing, I received the following error:
TypeError: Cannot read property 'scrollIntoView' of null
at TimedTextEditor.getCurrentWord (http://localhost:6006/main.6594fe536ebdd15b9dc8.bundle.js:2293:396)
at TimedTextEditor.render (http://localhost:6006/main.6594fe536ebdd15b9dc8.bundle.js:2301:22)
at finishClassComponent (http://localhost:6006/vendors~main.6594fe536ebdd15b9dc8.bundle.js:162314:31)
at updateClassComponent (http://localhost:6006/vendors~main.6594fe536ebdd15b9dc8.bundle.js:162267:24)
at beginWork$1 (http://localhost:6006/vendors~main.6594fe536ebdd15b9dc8.bundle.js:164015:16)
at HTMLUnknownElement.callCallback (http://localhost:6006/vendors~main.6594fe536ebdd15b9dc8.bundle.js:144269:14)
at Object.invokeGuardedCallbackDev (http://localhost:6006/vendors~main.6594fe536ebdd15b9dc8.bundle.js:144318:16)
at invokeGuardedCallback (http://localhost:6006/vendors~main.6594fe536ebdd15b9dc8.bundle.js:144373:31)
at beginWork$$1 (http://localhost:6006/vendors~main.6594fe536ebdd15b9dc8.bundle.js:169637:7)
at performUnitOfWork (http://localhost:6006/vendors~main.6594fe536ebdd15b9dc8.bundle.js:168548:12)
To Reproduce Steps to reproduce the behavior:
- Go to Settings Panel
- Click on 'Pause while Typing' to deselect
- Begin editing the transcript while the audio is playing. Double click a word and press the 'delete' button on your keyboard to erase the word and press delete a couple of times to remove the extra whitespace.
- See error
Expected behavior Editing words in real-time should not trigger an error.
Screenshots
Desktop (please complete the following information):
- OS: macOS Mojave Version 10.14.6
- Browser Chrome
- Version 78.0.3904.87 (Official Build) (64-bit)
Additional context
Anyone has solved it? I have the same problem actually
Me too I have the same problem too
Shameless plug to an alternative version, that builds on the lessons learned from this project, pietrop/slate-transcript-editor - storybook