pov #2

Manually merged
vutpov merged 4 commits from pov into master 2020-05-11 10:18:26 +07:00
Showing only changes of commit 716ddba5ef - Show all commits

View File

@ -7,6 +7,7 @@ const JumpControls = (props: any)=>{
const onChange = useCallback(
(value) => {
console.log(value, "hello")
if(value){
const newCurrIndex = value -1
if(newCurrIndex < src.length && newCurrIndex >=0){
@ -28,8 +29,8 @@ const JumpControls = (props: any)=>{
<Slider
min={1}
max={src.length}
onChange={onChange}
value={typeof inputValue === 'number' ? inputValue : 0}
onAfterChange={onChange}
defaultValue={typeof inputValue === 'number' ? inputValue : 0}
/>
</Col>
<Col span={4}>