fixed an issue with image slider

This commit is contained in:
Barunes Padhy 2024-06-24 17:00:20 +03:00
parent 0aff24fd49
commit 6388c3f6db
3 changed files with 4 additions and 2 deletions

View File

@ -88,6 +88,8 @@ function ImageNode(props) {
toggle={toggle} toggle={toggle}
setAlt={setAlt} setAlt={setAlt}
alt={alt} alt={alt}
width={width}
height={height}
imageRef={imageRef} imageRef={imageRef}
setWidth={handleSetWidth} setWidth={handleSetWidth}
setHeight={handleSetHeight} setHeight={handleSetHeight}

View File

@ -22,7 +22,7 @@ function CustomImagePropertiesModal(props) {
</ModalBody> </ModalBody>
<ModalFooter> <ModalFooter>
<Button color="primary" onClick={props.toggle}> <Button color="primary" onClick={props.toggle}>
Ok Done
</Button>{' '} </Button>{' '}
</ModalFooter> </ModalFooter>
</Modal> </Modal>

View File

@ -1,7 +1,7 @@
import React, { useState } from 'react'; import React, { useState } from 'react';
import { Input, Label, FormGroup, Container } from 'reactstrap'; import { Input, Label, FormGroup, Container } from 'reactstrap';
function RangeSlider (props) { function RangeSlider (props) {
const [value, setValue] = useState(props.defaultValue || props.min); const [value, setValue] = useState(props.value || props.defaultValue);
const handleChange = (e) => { const handleChange = (e) => {
setValue(e.target.value); setValue(e.target.value);