Skip to content

Commit

Permalink
fix #379
Browse files Browse the repository at this point in the history
  • Loading branch information
inc2734 committed Sep 17, 2024
1 parent fbea612 commit 61143ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/blocks/slider/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,14 @@ export default function ( {
>
<RangeControl
label={ __( 'Speed (s)', 'unitone' ) }
value={ speed || 0.3 }
value={ speed ?? 0.3 }
onChange={ ( newAttribute ) => {
setAttributes( {
speed: parseFloat( newAttribute ),
} );
} }
min={ 0 }
max={ 10 }
min={ 0.1 }
max={ 20 }
step={ 0.1 }
/>
</ToolsPanelItem>
Expand Down

0 comments on commit 61143ad

Please sign in to comment.