mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-24 01:04:39 +01:00
fix (#416): textarea ref issue
This commit is contained in:
parent
46417785ed
commit
5f85d5976c
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ export function Textarea({ ...props }) {
|
|||
const disabledEnter = (e) => {
|
||||
if(e.key === "Enter" && e.shiftKey === false){
|
||||
e.preventDefault();
|
||||
const $form = getForm($el.current.ref);
|
||||
const $form = getForm($el.current);
|
||||
if($form){
|
||||
$form.dispatchEvent(new Event("submit", { cancelable: true }));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue