File tree Expand file tree Collapse file tree
src/components/BootstrapBlazor.DockView/Components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
179179 return ;
180180 }
181181
182- if ( _renderActiveTabs )
182+ if ( _renderInactiveTabs )
183183 {
184184 _renderInactiveTabs = false ;
185185 await InvokeVoidAsync ( "reloadInactiveTab" , Id ) ;
@@ -323,7 +323,15 @@ private Task LoadInactiveTabs(List<string> tabs)
323323 /// </summary>
324324 /// <param name="key"></param>
325325 /// <returns></returns>
326- public bool IsActiveTab ( string ? key ) => string . IsNullOrEmpty ( key ) ? false : _activeTabs . Contains ( key ) ;
326+ public bool IsActiveTab ( string ? key )
327+ {
328+ if ( Renderer == DockViewRenderMode . Always )
329+ {
330+ return true ;
331+ }
332+
333+ return _activeTabs . Contains ( key ?? string . Empty ) ;
334+ }
327335
328336 /// <summary>
329337 /// 锁定回调方法 由 JavaScript 调用
You can’t perform that action at this time.
0 commit comments