-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speakername is editable even when edit function is disabled #133
Comments
Good catch, as you might remember from PR #103 in Leaving some notes on possible things to look at to address this. it might be a matter of
and to remove the icon if not editable (good call)
|
Hi @RizwanSyed357 The text is editable checkbox, is where you can toggle the this prop is being passed to At the moment to if it's set to true then changes are saved if false then doesn't update state, making component read only. This is how it is currently implemented, there might be room for a refactor using draftJs re more specifically with this issue of not allowing to edit speakers when let me know if you have any further questions or any of this is not clear, happy to help. |
Hi @RizwanSyed357, I tried But yes, feel free to raise a PR happy to have a look, and see if we can figure this out, I suspect there's something to do with propagating changes from There's another PR where we have tried to address some of the inter component communication to reduce unnecessary re-renders #160 which is still pending review, but might help. |
* fixes issue #133 * Working if isEditable is true can edit speaker label, if false, cannot * adjusted CSS accordingly * moved CustomEditor in separate file * speaker prompt keeps current speaker name * brought in changes from previous PRs master...philmcmahon:update-all-speakers#diff-cdf6a9957d22ff2efacaaf5fb2876a8aR58 it works but does not seem to rerender after change * names change but component doesn't re-render * changes don't propagate straight away but they do after you edit text * cleaned up still no auto re-rendering * works added shoudl component update and component did mount in wrapper block to update speaker label * changing spekaer triggers auto save callback * Removed space * Update packages/components/timed-text-editor/CustomEditor.js Co-Authored-By: Eimi Okuno <[email protected]> * Update packages/components/timed-text-editor/WrapperBlock.js Co-Authored-By: Eimi Okuno <[email protected]>
Describe the bug
Setting
isEditable
tofalse
does not prevent editing of speaker names.To Reproduce
Steps to reproduce the behavior:
isEditable
in theTranscriptEditor
component tofalse
.Expected behavior
Speakers are also disabled from edits if
isEditable
isfalse
Additional context

If this change is implemented, maybe remove the edit-icon from the speaker.
The text was updated successfully, but these errors were encountered: