From f2f6dbccb9c9b265d96450d47c6f30270312820a Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Mon, 22 Aug 2022 23:28:56 +0500 Subject: [PATCH] GH-173 - Assign modal fix --- webapp/src/components/assignee_modal/assignee_modal.jsx | 1 + webapp/src/components/todo_issues/todo_issues.jsx | 2 +- .../src/components/user_selector/autocomplete_selector.tsx | 2 ++ webapp/src/widget/buttons/button.scss | 2 +- webapp/src/widget/menu.scss | 2 +- webapp/src/widget/menuItem.tsx | 5 +++-- 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/webapp/src/components/assignee_modal/assignee_modal.jsx b/webapp/src/components/assignee_modal/assignee_modal.jsx index cd9e039a..943e08fb 100644 --- a/webapp/src/components/assignee_modal/assignee_modal.jsx +++ b/webapp/src/components/assignee_modal/assignee_modal.jsx @@ -76,6 +76,7 @@ const AssigneeModal = ( icon={} />

{'All tasks completed'}

- {'Nicely done, you’ve finished all of your tasks! Why not reward yourself with a little break?'} + {'Nicely done, you\'ve finished all of your tasks! Why not reward yourself with a little break?'}

); diff --git a/webapp/src/components/user_selector/autocomplete_selector.tsx b/webapp/src/components/user_selector/autocomplete_selector.tsx index 51df6b96..e771df45 100644 --- a/webapp/src/components/user_selector/autocomplete_selector.tsx +++ b/webapp/src/components/user_selector/autocomplete_selector.tsx @@ -19,6 +19,7 @@ import './autocomplete_selector.scss'; type Props = { loadOptions: (inputValue: string, callback: ((options: OptionsType) => void)) => Promise | void, + autoFocus?: boolean, label?: string, labelClassName?: string, helpText?: string, @@ -123,6 +124,7 @@ export default function AutocompleteSelector(props: Props) { {labelContent}
{ const {icon, shortcut, action, text} = props; useEffect(() => { - function handleKeypress(e: {key: string}) { + function handleKeypress(e: any) { if (e.key === shortcut) { + e.target.dispatchEvent(new Event('menuItemClicked')); action(); } }