Skip to content

Commit

Permalink
Merge pull request #802 from AI4Bharat/dev2-s
Browse files Browse the repository at this point in the history
Dev2 s
  • Loading branch information
aparna-aa authored Aug 19, 2024
2 parents 7fa0588 + 9d3a65f commit 1e90718
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/containers/Organization/Video/RightPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,16 +250,16 @@ const RightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showTimeline, s
}, [limit, currentOffset]);

const onMouseUp = (e, blockIdx) => {
setTimeout(() => {
setCurrentIndex(blockIdx);
}, 100);

if (e && e.target) {
const { selectionStart, value } = e.target;
if (selectionStart !== undefined && value !== undefined) {
setShowPopOver(true);
setCurrentIndexToSplitTextBlock(blockIdx);
setSelectionStart(selectionStart);
setTimeout(() => {
setCurrentIndex(blockIdx);
}, 100);

if (e && e.target) {
const { selectionStart, value } = e.target;
if (selectionStart !== undefined && value !== undefined) {
setShowPopOver(true);
setCurrentIndexToSplitTextBlock(blockIdx);
setSelectionStart(selectionStart);
}
}

Expand Down Expand Up @@ -550,6 +550,7 @@ const RightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showTimeline, s
return 0;
};


const handleAutosave = () => {
const reqBody = {
task_id: taskId,
Expand Down Expand Up @@ -630,6 +631,7 @@ const RightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showTimeline, s
},
},
];


return (
<>
Expand Down Expand Up @@ -784,7 +786,7 @@ const RightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showTimeline, s
ref={(el) => (textboxes.current[index] = el)}
onBlur={() => {
setTimeout(() => {
setShowPopOver(false);
// setShowPopOver(false);
}, 200);
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ const SettingsButtonComponent = ({

return false;
};


const handleScript = () => {
setAnchorElSettings(null);
Expand Down

0 comments on commit 1e90718

Please sign in to comment.