예제 #1
0
        protected async Task StopEditing(bool pInvokeSubmit, bool pUserInteracted)
        {
            if (pInvokeSubmit)
            {
                //Currently not sure if this makes sense. This should move the focus from an open input element which triggers to save the value
                //right now it's unknown if this workaround is needed or if it works anyway
                await JsRuntime.InvokeVoidAsync("mcomponents.focusElement", mTableReference);

                await Task.Delay(10);

                EditForm?.CallLocalSubmit(pUserInteracted);
            }

            EditForm = null;
            NewValue = default(T);
            EditRow  = null;

            StateHasChanged();
        }