protected override async Task OnParametersSetAsync() { if (_id != -1) { var props = new FocusTrapZoneProps(this, _firstBumper, _lastBumper); await jsRuntime.InvokeVoidAsync("BlazorFluentUiFocusTrapZone.updateProps", _id, props); } await base.OnParametersSetAsync(); }
private async void RegisterFocusTrapZone() { var props = new FocusTrapZoneProps(this, _firstBumper, _lastBumper); _id = await jsRuntime.InvokeAsync <int>("BlazorFluentUiFocusTrapZone.register", props, DotNetObjectReference.Create(this)); }