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}
setAlt={setAlt}
alt={alt}
width={width}
height={height}
imageRef={imageRef}
setWidth={handleSetWidth}
setHeight={handleSetHeight}

View File

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

View File

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