Skip to content

Commit 1f00138

Browse files
murezzdapietrop
authored andcommitted
Moving cursor no longer puts focus on timestamp and speaker labels (#103)
* Added contentEditable = false to timestamp and speaker element to prevent selection by cursor * Moved contentEditable tag to parent div, solves problem with cursor moving to speaker label
1 parent b040c72 commit 1f00138

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/TranscriptEditor/TimedTextEditor/WrapperBlock.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ class WrapperBlock extends React.Component {
9797

9898
return (
9999
<div className={ style.WrapperBlock }>
100-
<div className={ style.markers }>
100+
<div className={ style.markers }
101+
contentEditable={ false }>
101102
{this.props.blockProps.showSpeakers ? speakerElement : ''}
102103
{this.props.blockProps.showTimecodes ? timecodeElement : ''}
103104
</div>

0 commit comments

Comments
 (0)