Skip to content

Commit

Permalink
Merge pull request #364 from MMMMoriaty/alpha-audio
Browse files Browse the repository at this point in the history
fix: Disable autofocus in audio text tool
  • Loading branch information
Glenfiddish authored Nov 22, 2023
2 parents 57dbc63 + 4c6fc45 commit 69bb1aa
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,10 @@ const AudioAnnotate: React.FC<AppProps & IProps> = (props) => {

const [loading, setLoading] = useState<boolean>(true);
const [result, setResult] = useState<any>(null)
const [autoFocus, setAutoFocus] = useState<boolean>(false)
const [duration, setDuration] = useState<number>(0)

useEffect(() => {
setLoading(true)
setAutoFocus(true)
}, [imgIndex])

useEffect(() => {
Expand Down Expand Up @@ -531,7 +529,7 @@ const AudioAnnotate: React.FC<AppProps & IProps> = (props) => {
updateText={updateText}
updateRegion={updateRegion}
configList={configList}
autofocus={autoFocus}
autofocus={false}
textConfigurable={textConfigurable}
clipTextConfigurable={clipTextConfigurable}
clipAttributeList={clipAttributeList}
Expand Down

0 comments on commit 69bb1aa

Please sign in to comment.