forked from abner/for-legacy-web
Add a way to copy message links.
Remove focus from auto complete after click, fixes #12.
This commit is contained in:
1 parent
bb6ac68c8e
commit
2f06112921
3 files changed
+20
-1
No files matched your search
@@ -264,6 +264,7 @@ export function useAutoComplete(
|
||||
function onClick(ev: JSX.TargetedMouseEvent<HTMLButtonElement>) {
|
||||
ev.preventDefault();
|
||||
selectCurrent(document.querySelector("#message")!);
|
||||
setFocused(false);
|
||||
}
|
||||
|
||||
function onKeyDown(e: KeyboardEvent) {
|
||||
|
||||
Reference in new issue
Block a user