fixed an issue with image slider
This commit is contained in:
parent
0aff24fd49
commit
6388c3f6db
@ -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}
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user