fixed an issue with image slider
This commit is contained in:
parent
0aff24fd49
commit
6388c3f6db
@ -88,6 +88,8 @@ function ImageNode(props) {
|
||||
toggle={toggle}
|
||||
setAlt={setAlt}
|
||||
alt={alt}
|
||||
width={width}
|
||||
height={height}
|
||||
imageRef={imageRef}
|
||||
setWidth={handleSetWidth}
|
||||
setHeight={handleSetHeight}
|
||||
|
||||
@ -22,7 +22,7 @@ function CustomImagePropertiesModal(props) {
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button color="primary" onClick={props.toggle}>
|
||||
Ok
|
||||
Done
|
||||
</Button>{' '}
|
||||
</ModalFooter>
|
||||
</Modal>
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user