Exemple #1
0
        protected override void Dispose(bool disposing)
        {
            DomEventService.RemoveEventListerner <JsonElement>(Ref, "compositionstart", OnCompositionStart);
            DomEventService.RemoveEventListerner <JsonElement>(Ref, "compositionend", OnCompositionEnd);

            base.Dispose(disposing);
        }
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (string.IsNullOrWhiteSpace(TargetSelector))
     {
         DomEventService.RemoveEventListerner <JsonElement>("window", "scroll", OnScroll);
     }
     else
     {
         DomEventService.RemoveEventListerner <JsonElement>(TargetSelector, "scroll", OnScroll);
     }
 }
        protected override void Dispose(bool disposing)
        {
            if (AutoSize && !_isReloading)
            {
                _reference?.Dispose();
                DomEventService.RemoveEventListerner <JsonElement>("window", "beforeunload", Reloading);

                _ = InvokeAsync(async() =>
                {
                    await JsInvokeAsync(JSInteropConstants.DisposeResizeTextArea, Ref);
                });
            }

            base.Dispose(disposing);
        }
        protected virtual void Dispose(bool disposing)
        {
            if (!_isReloading)
            {
                _ = InvokeAsync(async() =>
                {
                    await Task.Delay(100);
                    await Js.InvokeVoidAsync(JSInteropConstants.RemovePreventCursorMoveOnArrowUp, ParentSelect._inputRef);
                });
            }
            DomEventService.RemoveEventListerner <JsonElement>("window", "beforeunload", Reloading);

            if (IsDisposed)
            {
                return;
            }

            IsDisposed = true;
        }
Exemple #5
0
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            DomEventService.RemoveEventListerner <Window>("window", "resize", OnResize);
        }