Skip to content

Commit

Permalink
Fix: default state for playback control
Browse files Browse the repository at this point in the history
  • Loading branch information
up1512001 committed Dec 27, 2024
1 parent 74f515f commit 47ad559
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/video/edit-common-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ const VideoSettings = ( { setAttributes, attributes } ) => {
<ToolsPanelItem
label={ __( 'Playback controls' ) }
isShownByDefault
hasValue={ () => !! controls }
hasValue={ () => ! controls }
onDeselect={ () => {
setAttributes( { controls: false } );
setAttributes( { controls: true } );
} }
>
<ToggleControl
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/video/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function VideoEdit( {
resetAll={ () => {
setAttributes( {
autoplay: false,
controls: false,
controls: true,
loop: false,
muted: false,
playsInline: false,
Expand Down

0 comments on commit 47ad559

Please sign in to comment.