mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-26 03:05:41 +03:00
Fix media description not recognized if programmatically entered
This commit is contained in:
parent
28882d98d9
commit
ff336628f8
1 changed files with 4 additions and 1 deletions
|
@ -1711,6 +1711,9 @@ function MediaAttachment({
|
|||
onDescriptionChange,
|
||||
250,
|
||||
);
|
||||
useEffect(() => {
|
||||
debouncedOnDescriptionChange(description);
|
||||
}, [description, debouncedOnDescriptionChange]);
|
||||
|
||||
const [showModal, setShowModal] = useState(false);
|
||||
const textareaRef = useRef(null);
|
||||
|
@ -1759,7 +1762,7 @@ function MediaAttachment({
|
|||
onInput={(e) => {
|
||||
const { value } = e.target;
|
||||
setDescription(value);
|
||||
debouncedOnDescriptionChange(value);
|
||||
// debouncedOnDescriptionChange(value);
|
||||
}}
|
||||
></textarea>
|
||||
)}
|
||||
|
|
Loading…
Reference in a new issue