Skip to content

Commit

Permalink
fix: resolve media has caption (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaCG authored Sep 12, 2024
1 parent 3a45bab commit e083f0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/DefaultVideo/DefaultVideo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable jsx-a11y/media-has-caption */
// TODO fix in https://github.com/gravity-ui/page-constructor/issues/967
import React, {Fragment, useCallback, useImperativeHandle, useRef, useState} from 'react';

import {CustomControlsType, MediaVideoControlsType, MediaVideoProps} from '../../models';
Expand Down Expand Up @@ -89,6 +87,7 @@ export const DefaultVideo = React.forwardRef<DefaultVideoRefType, DefaultVideoPr
{getVideoTypesWithPriority(video.src).map(({src, type}, index) => (
<source key={index} src={src} type={type} data-qa={qa} />
))}
<track default kind="captions" />
</video>

{controls === MediaVideoControlsType.Custom && (
Expand Down

0 comments on commit e083f0a

Please sign in to comment.