mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-24 17:59:58 +02:00
fix: don't scroll page when TTDDialog is opened (#9455)
This commit is contained in:
@@ -34,6 +34,7 @@ export const TTDDialogInput = ({
|
||||
callbackRef.current?.();
|
||||
}
|
||||
};
|
||||
textarea.focus();
|
||||
textarea.addEventListener(EVENT.KEYDOWN, handleKeyDown);
|
||||
return () => {
|
||||
textarea.removeEventListener(EVENT.KEYDOWN, handleKeyDown);
|
||||
@@ -47,7 +48,6 @@ export const TTDDialogInput = ({
|
||||
onChange={onChange}
|
||||
value={input}
|
||||
placeholder={placeholder}
|
||||
autoFocus
|
||||
ref={ref}
|
||||
/>
|
||||
);
|
||||
|
Reference in New Issue
Block a user