示例#1
0
        protected async Task OnCreateTaskAsync(UIKeyboardEventArgs eventArgs)
        {
            if (eventArgs.Key == "Enter")
            {
                NewTask.CategoryId = GetCategoryId();
                await OnSetPlanningDateAsync();

                await TaskService.SubmitTaskFormAsync(NewTask.TaskItem);

                CreateNewTask();
                await JS.ClearInputValueAsync("add-task-input", null);

                await JS.ClearDatePickerAsync("add-task-date");
            }
        }