Example #1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing && Rendered)
            {
                JSRunner.DestroyTextEdit(ElementRef, ElementId);
            }

            base.Dispose(disposing);
        }
Example #2
0
        /// <inheritdoc/>
        protected override async ValueTask DisposeAsync(bool disposing)
        {
            if (disposing && Rendered)
            {
                var task = JSRunner.DestroyTextEdit(ElementRef, ElementId);

                try
                {
                    await task;
                }
                catch when(task.IsCanceled)
                {
                }
Example #3
0
        public override void Dispose()
        {
            JSRunner.DestroyTextEdit(ElementId, ElementRef);

            base.Dispose();
        }